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
| DECIMAL_MINUS | DECIMAL_MINUS
| OCTAL | OCTAL
| OCTAL_LITERAL | signeddecimal
| d | signedoctal
; ;
string string
: STRING '>'? : STRING OCTAL_LITERAL* '>'?
; ;
d signeddecimal
: '-'? DECIMAL_LITERAL : '-'? DECIMAL_LITERAL
; ;
signedoctal
: '-'? OCTAL_LITERAL
;
eol eol
: EOL : EOL
; ;