Structure

RWL is mainly composed of a handfull of things:

Elements

A node used to define objects, that can contain optional attributes or nested elements (blocks)

"hi" [id = "myID"]

Usually, elements that are not blocks have their type (e.g. frame in frame {}) as a value.

Elements can also have a number of attributes.

"hi" [id = "myID", font = "llama"]

Blocks

Type of element that contains nested nodes

name {
    content
}
name [attributes] {
    content
}

Segments

One or more elements as a list

"hi",
frame {}

Attribute

A key or flag, usually inside square brackets in an element or block.

Key

id = "myID"

Flag

Horizontal

Value

Simply a value that can denote somthing.

str (string):

text in "", '' or ``:

"Hello World!"
'wow'
`:3`

num (number):

any numerical number:

4
-7
3.14
1e-18

Last updated