ruff
This commit is contained in:
@@ -431,7 +431,7 @@ class MathExprParser ( Parser ):
|
||||
def getRuleIndex(self):
|
||||
return MathExprParser.RULE_compExpr
|
||||
|
||||
|
||||
|
||||
def copyFrom(self, ctx:ParserRuleContext):
|
||||
super().copyFrom(ctx)
|
||||
|
||||
@@ -747,7 +747,7 @@ class MathExprParser ( Parser ):
|
||||
self.addExpr(0)
|
||||
pass
|
||||
|
||||
|
||||
|
||||
self.state = 53
|
||||
self._errHandler.sync(self)
|
||||
_alt = self._interp.adaptivePredict(self._input,2,self._ctx)
|
||||
@@ -772,7 +772,7 @@ class MathExprParser ( Parser ):
|
||||
def getRuleIndex(self):
|
||||
return MathExprParser.RULE_addExpr
|
||||
|
||||
|
||||
|
||||
def copyFrom(self, ctx:ParserRuleContext):
|
||||
super().copyFrom(ctx)
|
||||
|
||||
@@ -916,7 +916,7 @@ class MathExprParser ( Parser ):
|
||||
self.mulExpr(0)
|
||||
pass
|
||||
|
||||
|
||||
|
||||
self.state = 67
|
||||
self._errHandler.sync(self)
|
||||
_alt = self._interp.adaptivePredict(self._input,4,self._ctx)
|
||||
@@ -941,7 +941,7 @@ class MathExprParser ( Parser ):
|
||||
def getRuleIndex(self):
|
||||
return MathExprParser.RULE_mulExpr
|
||||
|
||||
|
||||
|
||||
def copyFrom(self, ctx:ParserRuleContext):
|
||||
super().copyFrom(ctx)
|
||||
|
||||
@@ -1128,7 +1128,7 @@ class MathExprParser ( Parser ):
|
||||
self.powExpr()
|
||||
pass
|
||||
|
||||
|
||||
|
||||
self.state = 84
|
||||
self._errHandler.sync(self)
|
||||
_alt = self._interp.adaptivePredict(self._input,6,self._ctx)
|
||||
@@ -1153,7 +1153,7 @@ class MathExprParser ( Parser ):
|
||||
def getRuleIndex(self):
|
||||
return MathExprParser.RULE_powExpr
|
||||
|
||||
|
||||
|
||||
def copyFrom(self, ctx:ParserRuleContext):
|
||||
super().copyFrom(ctx)
|
||||
|
||||
@@ -1262,7 +1262,7 @@ class MathExprParser ( Parser ):
|
||||
def getRuleIndex(self):
|
||||
return MathExprParser.RULE_unaryExpr
|
||||
|
||||
|
||||
|
||||
def copyFrom(self, ctx:ParserRuleContext):
|
||||
super().copyFrom(ctx)
|
||||
|
||||
@@ -1401,7 +1401,7 @@ class MathExprParser ( Parser ):
|
||||
def getRuleIndex(self):
|
||||
return MathExprParser.RULE_atom
|
||||
|
||||
|
||||
|
||||
def copyFrom(self, ctx:ParserRuleContext):
|
||||
super().copyFrom(ctx)
|
||||
|
||||
@@ -1823,7 +1823,7 @@ class MathExprParser ( Parser ):
|
||||
def getRuleIndex(self):
|
||||
return MathExprParser.RULE_func1
|
||||
|
||||
|
||||
|
||||
def copyFrom(self, ctx:ParserRuleContext):
|
||||
super().copyFrom(ctx)
|
||||
|
||||
@@ -3538,7 +3538,7 @@ class MathExprParser ( Parser ):
|
||||
def getRuleIndex(self):
|
||||
return MathExprParser.RULE_func2
|
||||
|
||||
|
||||
|
||||
def copyFrom(self, ctx:ParserRuleContext):
|
||||
super().copyFrom(ctx)
|
||||
|
||||
@@ -4148,7 +4148,7 @@ class MathExprParser ( Parser ):
|
||||
def getRuleIndex(self):
|
||||
return MathExprParser.RULE_func3
|
||||
|
||||
|
||||
|
||||
def copyFrom(self, ctx:ParserRuleContext):
|
||||
super().copyFrom(ctx)
|
||||
|
||||
@@ -4481,7 +4481,7 @@ class MathExprParser ( Parser ):
|
||||
def getRuleIndex(self):
|
||||
return MathExprParser.RULE_func4
|
||||
|
||||
|
||||
|
||||
def copyFrom(self, ctx:ParserRuleContext):
|
||||
super().copyFrom(ctx)
|
||||
|
||||
@@ -4574,7 +4574,7 @@ class MathExprParser ( Parser ):
|
||||
def getRuleIndex(self):
|
||||
return MathExprParser.RULE_funcN
|
||||
|
||||
|
||||
|
||||
def copyFrom(self, ctx:ParserRuleContext):
|
||||
super().copyFrom(ctx)
|
||||
|
||||
@@ -5043,49 +5043,49 @@ class MathExprParser ( Parser ):
|
||||
def compExpr_sempred(self, localctx:CompExprContext, predIndex:int):
|
||||
if predIndex == 0:
|
||||
return self.precpred(self._ctx, 7)
|
||||
|
||||
|
||||
|
||||
if predIndex == 1:
|
||||
return self.precpred(self._ctx, 6)
|
||||
|
||||
|
||||
|
||||
if predIndex == 2:
|
||||
return self.precpred(self._ctx, 5)
|
||||
|
||||
|
||||
|
||||
if predIndex == 3:
|
||||
return self.precpred(self._ctx, 4)
|
||||
|
||||
|
||||
|
||||
if predIndex == 4:
|
||||
return self.precpred(self._ctx, 3)
|
||||
|
||||
|
||||
|
||||
if predIndex == 5:
|
||||
return self.precpred(self._ctx, 2)
|
||||
|
||||
|
||||
|
||||
def addExpr_sempred(self, localctx:AddExprContext, predIndex:int):
|
||||
if predIndex == 6:
|
||||
return self.precpred(self._ctx, 3)
|
||||
|
||||
|
||||
|
||||
if predIndex == 7:
|
||||
return self.precpred(self._ctx, 2)
|
||||
|
||||
|
||||
|
||||
def mulExpr_sempred(self, localctx:MulExprContext, predIndex:int):
|
||||
if predIndex == 8:
|
||||
return self.precpred(self._ctx, 4)
|
||||
|
||||
|
||||
|
||||
if predIndex == 9:
|
||||
return self.precpred(self._ctx, 3)
|
||||
|
||||
|
||||
|
||||
if predIndex == 10:
|
||||
return self.precpred(self._ctx, 2)
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user