Skip to content

Commit

Permalink
HCK-2557: allow ninja style in names
Browse files Browse the repository at this point in the history
  • Loading branch information
lenchvolodymyr committed Nov 7, 2022
1 parent 34f0732 commit 35a32c7
Show file tree
Hide file tree
Showing 4 changed files with 1,446 additions and 1,379 deletions.
4 changes: 2 additions & 2 deletions reverse_engineering/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,15 @@
# alias grun='java org.antlr.v4.gui.TestRig'

# build parser
antlr4 -Dlanguage=JavaScript \
java -jar /usr/local/lib/antlr-4.9.2-complete.jar -Dlanguage=JavaScript \
-lib grammars \
-o parser/SQLBase \
-visitor \
-no-listener \
-Xexact-output-dir \
grammars/SqlBase.g4

antlr4 -Dlanguage=JavaScript \
java -jar /usr/local/lib/antlr-4.9.2-complete.jar -Dlanguage=JavaScript \
-lib grammars \
-o parser/Hive \
-visitor \
Expand Down
1 change: 1 addition & 0 deletions reverse_engineering/grammars/IdentifiersParser.g4
Original file line number Diff line number Diff line change
Expand Up @@ -517,6 +517,7 @@ descFuncNames

identifier
: Identifier
| '{''{' (Identifier) '}''}'
| nonReserved
| databricksAllowedReservedNames
;
Expand Down
2 changes: 1 addition & 1 deletion reverse_engineering/parser/Hive/HiveParser.interp

Large diffs are not rendered by default.

Loading

0 comments on commit 35a32c7

Please sign in to comment.