Nodes
Nodes represent some text to be rendered, optionally with styles
Creating a node
The node DSL is what we recommend for most people, it offers an extremely simple way to create a node
If you desire a more manual method you can extend the Node class
Non-terminal nodes are nodes that can have child nodes. These are typically used to layer styles.
Name | Arguments | Returns |
---|---|---|
nonTerminalNode |
| ParseSpec |
nonTerminalNode |
| ParseSpec |
nodeWithChildren |
| ParseSpec |
nodeWithChildren |
| ParseSpec |
Terminal nodes are used to append some text with any chosen styles, they cannot have any children.
Name | Arguments | Returns |
---|---|---|
node |
| ParseSpec |
node |
| ParseSpec |
terminalNode |
| ParseSpec |
terminalNode |
| ParseSpec |
Last updated