@@ -84,6 +84,7 @@ def exit<lname; format="cap">(self, ctx: <file.parserName>.<lname; format="cap">
84
84
}; separator="\n">
85
85
86
86
del <file.parserName>
87
+
87
88
>>
88
89
89
90
@@ -108,6 +109,7 @@ def visit<lname; format="cap">(self, ctx: <file.parserName>.<lname; format="cap"
108
109
}; separator="\n">
109
110
110
111
del <file.parserName>
112
+
111
113
>>
112
114
113
115
@@ -141,19 +143,19 @@ class <parser.name>(<if(superClass)><superClass><else>Parser<endif>):
141
143
sharedContextCache = PredictionContextCache()
142
144
143
145
literalNames = [
144
- <parser.literalNames:{t | <t>}; null="\"\<INVALID>\"", separator=",\n", anchor>,
146
+ <parser.literalNames:{t | <t>}; null="\"\<INVALID>\"", separator=",\n", anchor><if(parser.literalNames)>,<endif>
145
147
]
146
148
147
149
symbolicNames = [
148
- <parser.symbolicNames:{t | <t>}; null="\"\<INVALID>\"", separator=",\n", anchor>,
150
+ <parser.symbolicNames:{t | <t>}; null="\"\<INVALID>\"", separator=",\n", anchor><if(parser.symbolicNames)>,<endif>
149
151
]
150
152
151
153
<if(parser.rules)>
152
154
<parser.rules:{r | RULE_<r.name> = <r.index>}; separator="\n", wrap, anchor>
153
155
<endif>
154
156
155
157
ruleNames = [
156
- <parser.ruleNames:{r | "<r>"}; separator=",\n", wrap, anchor>,
158
+ <parser.ruleNames:{r | "<r>"}; separator=",\n", wrap, anchor><if(parser.ruleNames)>,<endif>
157
159
]
158
160
159
161
EOF = <TokenLabelType()>.EOF
@@ -825,22 +827,21 @@ class <lexer.name>(<if(superClass)><superClass><else>Lexer<endif>):
825
827
channelNames = [
826
828
"DEFAULT_TOKEN_CHANNEL",
827
829
"HIDDEN"<if (lexer.channelNames)>,
828
- <lexer.channelNames:{c| "<c>"}; separator=",\n", anchor>
829
- <endif>,
830
+ <lexer.channelNames:{c| "<c>"}; separator=",\n", anchor><endif>,
830
831
]
831
832
832
833
modeNames = [
833
834
<lexer.modes:{m| "<m>"}; separator=",\n", anchor>,
834
835
]
835
836
836
837
literalNames = [
837
- "\<INVALID>",
838
- <lexer.literalNames:{t | <t>}; separator=",\n", anchor>,
838
+ "\<INVALID>"<if (lexer.literalNames)> ,
839
+ <lexer.literalNames:{t | <t>}; separator=",\n", anchor><endif> ,
839
840
]
840
841
841
842
symbolicNames = [
842
- "\<INVALID>",
843
- <lexer.symbolicNames:{t | <t>}; separator=",\n", anchor>,
843
+ "\<INVALID>"<if (lexer.symbolicNames)> ,
844
+ <lexer.symbolicNames:{t | <t>}; separator=",\n", anchor><endif> ,
844
845
]
845
846
846
847
ruleNames = [
0 commit comments