hm
This commit is contained in:
+9
-5
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user