1- # Generated from PartiQLParser.g4 by ANTLR 4.13.2
1+ # Generated from PartiQLParser.g4 by ANTLR 4.13.0
22# encoding: utf-8
33from antlr4 import *
44from io import StringIO
@@ -303,21 +303,21 @@ def serializedATN():
303303 513,511,1,0,0,0,513,514,1,0,0,0,514,516,1,0,0,0,515,517,3,66,33,
304304 0,516,515,1,0,0,0,516,517,1,0,0,0,517,519,1,0,0,0,518,520,3,86,43,
305305 0,519,518,1,0,0,0,519,520,1,0,0,0,520,57,1,0,0,0,521,522,5,112,0,
306- 0,522,523,5,117,0,0,523,525,3,12,6,0,524,526,3,6,3 ,0,525,524,1,0 ,
307- 0,0,525,526,1,0,0,0,526,527,1,0,0,0,527,529,3,188,94 ,0,528,530,3 ,
308- 62,31,0,529,528,1,0,0,0,529,530,1,0,0,0,530,542,1,0,0,0,531,532,
309- 5,112,0,0,532,533,5,117,0,0,533,535,3,12,6,0,534,536,3,60,30 ,0,535,
310- 534,1,0,0,0,535,536,1,0,0,0,536,537,1,0,0,0,537,539,3,220,110,0 ,
311- 538, 540,3,62,31,0,539,538,1,0,0,0,539,540,1,0,0,0,540,542,1,0,0,
312- 0,541, 521,1,0,0,0,541,531,1,0,0,0,542,59,1,0,0,0,543,544,5,294,0,
313- 0,544, 549,3,24,12,0,545,546,5,270,0,0,546,548,3,24,12,0,547,545,
314- 1,0,0,0, 548,551,1,0,0,0,549,547,1,0,0,0,549,550,1,0,0,0,550,552,
315- 1,0,0,0, 551,549,1,0,0,0,552,553,5,295,0,0,553,61,1,0,0,0,554,555,
316- 5,147, 0,0,555,557,5,244,0,0,556,558,3,68,34,0,557,556,1,0,0,0,557,
317- 558, 1,0,0,0,558,559,1,0,0,0,559,560,3,72,36,0,560,63,1,0,0,0,561,
318- 562, 5,112,0,0,562,563,5,117,0,0,563,564,3,46,23,0,564,565,5,218,
319- 0,0, 565,568,3,188,94,0,566,567,5,13,0,0,567,569,3,188,94,0,568,566,
320- 1, 0,0,0,568,569,1,0,0,0,569,571,1,0,0,0,570,572,3,66,33,0,571,570,
306+ 0,522,523,5,117,0,0,523,525,3,12,6,0,524,526,3,60,30 ,0,525,524,1,
307+ 0,0,0, 525,526,1,0,0,0,526,527,1,0,0,0,527,529,3,220,110 ,0,528,530,
308+ 3, 62,31,0,529,528,1,0,0,0,529,530,1,0,0,0,530,542,1,0,0,0,531,532,
309+ 5,112,0,0,532,533,5,117,0,0,533,535,3,12,6,0,534,536,3,6,3 ,0,535,
310+ 534,1,0,0,0,535,536,1,0,0,0,536,537,1,0,0,0,537,539,3,188,94,0,538 ,
311+ 540,3,62,31,0,539,538,1,0,0,0,539,540,1,0,0,0,540,542,1,0,0,0,541 ,
312+ 521,1,0,0,0,541,531,1,0,0,0,542,59,1,0,0,0,543,544,5,294,0,0,544 ,
313+ 549,3,24,12,0,545,546,5,270,0,0,546,548,3,24,12,0,547,545,1,0,0 ,
314+ 0, 548,551,1,0,0,0,549,547,1,0,0,0,549,550,1,0,0,0,550,552,1,0,0 ,
315+ 0, 551,549,1,0,0,0,552,553,5,295,0,0,553,61,1,0,0,0,554,555,5,147 ,
316+ 0,0,555,557,5,244,0,0,556,558,3,68,34,0,557,556,1,0,0,0,557,558 ,
317+ 1,0,0,0,558,559,1,0,0,0,559,560,3,72,36,0,560,63,1,0,0,0,561,562 ,
318+ 5,112,0,0,562,563,5,117,0,0,563,564,3,46,23,0,564,565,5,218,0,0 ,
319+ 565,568,3,188,94,0,566,567,5,13,0,0,567,569,3,188,94,0,568,566,1 ,
320+ 0,0,0,568,569,1,0,0,0,569,571,1,0,0,0,570,572,3,66,33,0,571,570,
321321 1,0,0,0,571,572,1,0,0,0,572,65,1,0,0,0,573,574,5,147,0,0,574,575,
322322 5,244,0,0,575,576,5,225,0,0,576,577,3,188,94,0,577,578,5,245,0,0,
323323 578,579,5,250,0,0,579,67,1,0,0,0,580,581,5,294,0,0,581,586,3,12,
@@ -1384,7 +1384,7 @@ class PartiQLParser ( Parser ):
13841384
13851385 def __init__(self, input:TokenStream, output:TextIO = sys.stdout):
13861386 super().__init__(input, output)
1387- self.checkVersion("4.13.2 ")
1387+ self.checkVersion("4.13.0 ")
13881388 self._interp = ParserATNSimulator(self, self.atn, self.decisionsToDFA, self.sharedContextCache)
13891389 self._predicates = None
13901390
@@ -3969,24 +3969,24 @@ def symbolPrimitive(self):
39693969 return self.getTypedRuleContext(PartiQLParser.SymbolPrimitiveContext,0)
39703970
39713971
3972- def expr (self):
3973- return self.getTypedRuleContext(PartiQLParser.ExprContext ,0)
3972+ def values (self):
3973+ return self.getTypedRuleContext(PartiQLParser.ValuesContext ,0)
39743974
39753975
3976- def asIdent (self):
3977- return self.getTypedRuleContext(PartiQLParser.AsIdentContext ,0)
3976+ def columnList (self):
3977+ return self.getTypedRuleContext(PartiQLParser.ColumnListContext ,0)
39783978
39793979
39803980 def onConflict(self):
39813981 return self.getTypedRuleContext(PartiQLParser.OnConflictContext,0)
39823982
39833983
3984- def values (self):
3985- return self.getTypedRuleContext(PartiQLParser.ValuesContext ,0)
3984+ def expr (self):
3985+ return self.getTypedRuleContext(PartiQLParser.ExprContext ,0)
39863986
39873987
3988- def columnList (self):
3989- return self.getTypedRuleContext(PartiQLParser.ColumnListContext ,0)
3988+ def asIdent (self):
3989+ return self.getTypedRuleContext(PartiQLParser.AsIdentContext ,0)
39903990
39913991
39923992 def getRuleIndex(self):
@@ -4029,13 +4029,13 @@ def insertStatement(self):
40294029 self.state = 525
40304030 self._errHandler.sync(self)
40314031 _la = self._input.LA(1)
4032- if _la==10 :
4032+ if _la==294 :
40334033 self.state = 524
4034- self.asIdent ()
4034+ self.columnList ()
40354035
40364036
40374037 self.state = 527
4038- localctx.value = self.expr ()
4038+ self.values ()
40394039 self.state = 529
40404040 self._errHandler.sync(self)
40414041 _la = self._input.LA(1)
@@ -4057,13 +4057,13 @@ def insertStatement(self):
40574057 self.state = 535
40584058 self._errHandler.sync(self)
40594059 _la = self._input.LA(1)
4060- if _la==294 :
4060+ if _la==10 :
40614061 self.state = 534
4062- self.columnList ()
4062+ self.asIdent ()
40634063
40644064
40654065 self.state = 537
4066- self.values ()
4066+ localctx.value = self.expr ()
40674067 self.state = 539
40684068 self._errHandler.sync(self)
40694069 _la = self._input.LA(1)
0 commit comments