Core PDML Railroad Diagrams
The following railroad diagrams illustrate PDML's grammar.
Only Core PDML is covered. Optional extensions like attributes, namespaces etc. are not included.
The railroad diagrams are not a specification. They are just an auxiliary asset to contextualize the official specification.
The grammar is also illustrated as EBNF.
Notes:
- Rectangles (e.g. ) represent non-terminal elements. You can click on them to go to their definition.
- Rounded rectangles (e.g. ) represent characters to type.
- Thanks to Tab Atkins for his excellent Railroad-diagram Generator, used to generate these diagrams.
Node
Empty node
Example:
[new_line]
Non-empty node
Examples:
[color orange] [config [color orange]] [div A [i[b nice]] dog]
Name
Examples:
height ins-file _default Index_12-a.2
Separator
Child node
Examples:
[b [i huge]] [message All is well!]
Text
Examples:
Bob 3.14 We want simplicity. root\\config\["port"\]
Text character
Examples:
a 😀 \[