| 1 | grammar PieGrammar |
| 2 | import "../common/common"; |
| 3 | |
| 4 | entry Pie: |
| 5 | NEWLINE* |
| 6 | "pie" showData?="showData"? |
| 7 | ( |
| 8 | TitleAndAccessibilities |
| 9 | | sections+=PieSection |
| 10 | | NEWLINE |
| 11 | )* |
| 12 | ; |
| 13 | |
| 14 | PieSection: |
| 15 | label=STRING ":" value=NUMBER_PIE EOL |
| 16 | ; |
| 17 | |
| 18 | terminal FLOAT_PIE returns number: /-?[0-9]+\.[0-9]+(?!\.)/; |
| 19 | terminal INT_PIE returns number: /-?(0|[1-9][0-9]*)(?!\.)/; |
| 20 | terminal NUMBER_PIE returns number: FLOAT_PIE | INT_PIE; |
| 21 |