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:

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
😀
\[