smarter literals

This commit is contained in:
Tom Everett
2016-03-01 17:44:59 -07:00
parent 0efc47881d
commit b3cf1cc313
+8 -4
View File
@@ -76,18 +76,22 @@ atom
| DECIMAL
| DECIMAL_MINUS
| OCTAL
| OCTAL_LITERAL
| d
| signeddecimal
| signedoctal
;
string
: STRING '>'?
: STRING OCTAL_LITERAL* '>'?
;
d
signeddecimal
: '-'? DECIMAL_LITERAL
;
signedoctal
: '-'? OCTAL_LITERAL
;
eol
: EOL
;