Remove support for octal literals
For the datetime stuff we need integer literals with leading zeros, and surely there is not a single breathing person who has ever written an octal literal in HQL.
This commit is contained in:
parent
42de2976e1
commit
0d3b130258
|
@ -69,8 +69,6 @@ BIG_DECIMAL_LITERAL : FLOATING_POINT_NUMBER BIG_DECIMAL_SUFFIX;
|
|||
|
||||
HEX_LITERAL : '0' [xX] HEX_DIGIT+ LONG_SUFFIX?;
|
||||
|
||||
OCTAL_LITERAL : '0' ('0'..'7')+ ('l'|'L')?;
|
||||
|
||||
fragment SINGLE_QUOTE : '\'';
|
||||
fragment DOUBLE_QUOTE : '"';
|
||||
|
||||
|
@ -95,14 +93,6 @@ UNICODE_ESCAPE
|
|||
: 'u' HEX_DIGIT HEX_DIGIT HEX_DIGIT HEX_DIGIT
|
||||
;
|
||||
|
||||
fragment
|
||||
OCTAL_ESCAPE
|
||||
: BACKSLASH ('0'..'3') ('0'..'7') ('0'..'7')
|
||||
| BACKSLASH ('0'..'7') ('0'..'7')
|
||||
| BACKSLASH ('0'..'7')
|
||||
;
|
||||
|
||||
|
||||
// ESCAPE start tokens
|
||||
TIMESTAMP_ESCAPE_START : '{ts';
|
||||
DATE_ESCAPE_START : '{d';
|
||||
|
|
|
@ -508,7 +508,6 @@ literal
|
|||
| DOUBLE_LITERAL
|
||||
| BIG_DECIMAL_LITERAL
|
||||
| HEX_LITERAL
|
||||
| OCTAL_LITERAL
|
||||
| NULL
|
||||
| TRUE
|
||||
| FALSE
|
||||
|
|
Loading…
Reference in New Issue