Skip to content

Commit

Permalink
Add auto-generated parser files
Browse files Browse the repository at this point in the history
  • Loading branch information
scgkiran committed Sep 2, 2024
1 parent 58249db commit adcce01
Show file tree
Hide file tree
Showing 14 changed files with 7,077 additions and 5 deletions.
2 changes: 1 addition & 1 deletion grammar/Makefile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
ANTLR_JAR=antlr-4.13.2-complete.jar
GRAMMARS=SubstraitLexer.g4 TestFileLexer.g4 TestFileParser.g4
OUTPUT_DIR=../tests/coverage/antlr_generated
OUTPUT_DIR=../tests/coverage/antlr_parser

generate:
java -jar $(ANTLR_JAR) -visitor -Dlanguage=Python3 -o $(OUTPUT_DIR) $(GRAMMARS)
Expand Down
228 changes: 228 additions & 0 deletions tests/coverage/antlr_parser/SubstraitLexer.interp

Large diffs are not rendered by default.

344 changes: 344 additions & 0 deletions tests/coverage/antlr_parser/SubstraitLexer.py

Large diffs are not rendered by default.

74 changes: 74 additions & 0 deletions tests/coverage/antlr_parser/SubstraitLexer.tokens
Original file line number Diff line number Diff line change
@@ -0,0 +1,74 @@
LineComment=1
BlockComment=2
Whitespace=3
If=4
Then=5
Else=6
Boolean=7
I8=8
I16=9
I32=10
I64=11
FP32=12
FP64=13
String=14
Binary=15
Timestamp=16
TimestampTZ=17
Date=18
Time=19
IntervalYear=20
IntervalDay=21
UUID=22
Decimal=23
PrecisionTimestamp=24
PrecisionTimestampTZ=25
FixedChar=26
VarChar=27
FixedBinary=28
Struct=29
NStruct=30
List=31
Map=32
ANY=33
UserDefined=34
Bool=35
Str=36
VBin=37
Ts=38
TsTZ=39
IYear=40
IDay=41
Dec=42
PTs=43
PTsTZ=44
FChar=45
VChar=46
FBin=47
DOUBLE_COLON=48
IDENTIFIER=49
O_ANGLE_BRACKET=50
C_ANGLE_BRACKET=51
OPAREN=52
CPAREN=53
OBRACKET=54
CBRACKET=55
COMMA=56
EQ=57
COLON=58
QMARK=59
HASH=60
DOT=61
'::'=48
'<'=50
'>'=51
'('=52
')'=53
'['=54
']'=55
','=56
'='=57
':'=58
'?'=59
'#'=60
'.'=61
Loading

0 comments on commit adcce01

Please sign in to comment.