Hash :
aaaa29a8
Author :
Date :
2019-10-16T11:28:54
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43
stat: 'return' e ';' # Return
| 'break' ';' # Break
;
e : e '*' e # Mult
| e '+' e # Add
| INT # Int
;
----------------------------------------------------
[
["definition", "stat"],
["punctuation", ":"],
["string", "'return'"],
" e ",
["string", "';'"],
["label", "# Return"],
["operator", "|"],
["string", "'break'"],
["string", "';'"],
["label", "# Break"],
["punctuation", ";"],
["definition", "e"],
["punctuation", ":"],
" e ",
["string", "'*'"],
" e ",
["label", "# Mult"],
["operator", "|"],
" e ",
["string", "'+'"],
" e ",
["label", "# Add"],
["operator", "|"],
["constant", "INT"],
["label", "# Int"],
["punctuation", ";"]
]
----------------------------------------------------
Checks for labels.