This commit is contained in:
Tom Everett
2016-02-29 19:32:26 -07:00
parent 9f3a2a14e8
commit 064e6a7b9d
+9 -5
View File
@@ -37,8 +37,7 @@ prog
; ;
line line
: (label? declarations? comment? eol) : ( label | declarations)* comment? eol
| eol
; ;
declarations declarations
@@ -69,7 +68,8 @@ atom
| DECIMAL | DECIMAL
| DECIMAL_MINUS | DECIMAL_MINUS
| OCTAL | OCTAL
| HEX | OCTAL_LITERAL
| DECIMAL_LITERAL
; ;
eol eol
@@ -129,8 +129,12 @@ IDENTIFIER
: [a-zA-Z]+ : [a-zA-Z]+
; ;
HEX OCTAL_LITERAL
: [0-9a-f]+ : [0] [0-7]+
;
DECIMAL_LITERAL
: [1-9] [0-9]+
; ;
DECIMAL DECIMAL