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:
gavinking 2020-01-30 19:25:12 +01:00 committed by Steve Ebersole
parent 42de2976e1
commit 0d3b130258
2 changed files with 0 additions and 11 deletions

View File

@ -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';

View File

@ -508,7 +508,6 @@ literal
| DOUBLE_LITERAL
| BIG_DECIMAL_LITERAL
| HEX_LITERAL
| OCTAL_LITERAL
| NULL
| TRUE
| FALSE