| 1 | grammar PacketGrammar |
| 2 | import "../common/common"; |
| 3 | |
| 4 | entry Packet: |
| 5 | NEWLINE* |
| 6 | ("packet"| "packet-beta") |
| 7 | ( |
| 8 | TitleAndAccessibilities |
| 9 | | blocks+=PacketBlock |
| 10 | | NEWLINE |
| 11 | )* |
| 12 | ; |
| 13 | |
| 14 | PacketBlock: |
| 15 | ( |
| 16 | start=INT('-' end=INT)? |
| 17 | | '+' bits=INT |
| 18 | ) |
| 19 | ':' label=STRING |
| 20 | EOL |
| 21 | ; |
| 22 |