Skip to content

Commit 1b0a045

Browse files
committed
Comment diagram
1 parent da3fc54 commit 1b0a045

3 files changed

Lines changed: 136 additions & 0 deletions

File tree

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,8 @@ Structural parts of the format, including reserved words, are case-insensitive.
5454
Comments may be included in most places within a stream where optional white
5555
space is permitted. Comments are enclosed in parentheses and may be nested.
5656

57+
![Comment](diagrams/comment.svg)
58+
5759
### Null
5860

5961
![Null](diagrams/null.svg)

diagrams/README.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,21 @@ Diagram(Group(Sequence(
5151
), "Value"))
5252
```
5353

54+
## Comment
55+
56+
![Comment](comment.svg)
57+
58+
```
59+
Diagram(Group(Sequence(
60+
"(",
61+
OneOrMore(Choice(1,
62+
NonTerminal("Comment"),
63+
NonTerminal("COMMENT TEXT"),
64+
)),
65+
")",
66+
), "Comment"))
67+
```
68+
5469
## Null
5570

5671
![Null](null.svg)

diagrams/comment.svg

Lines changed: 119 additions & 0 deletions
Loading

0 commit comments

Comments
 (0)