modify sparkSql grammar

This commit is contained in:
xigua
2020-12-17 16:35:49 +08:00
parent 8418c42c26
commit 084efe1aab
10 changed files with 8424 additions and 8237 deletions

View File

@ -75,7 +75,11 @@ program
;
singleStatement
: statement ';'* EOF
: (statement SEMICOLON? | emptyStatement)*
;
emptyStatement
: SEMICOLON
;
singleExpression
@ -1741,6 +1745,7 @@ AMPERSAND: '&';
PIPE: '|';
CONCAT_PIPE: '||';
HAT: '^';
SEMICOLON: ';';
STRING
: '\'' ( ~('\''|'\\') | ('\\' .) )* '\''