MCPcopy
hub / github.com/antlr/antlr4 / assignmentExpression

Method assignmentExpression

runtime/Python3/tests/parser/cparser.py:2881–2911  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

2879
2880
2881 def assignmentExpression(self):
2882
2883 localctx = CParser.AssignmentExpressionContext(self, self._ctx, self.state)
2884 self.enterRule(localctx, 40, self.RULE_assignmentExpression)
2885 try:
2886 self.state = 490
2887 la_ = self._interp.adaptivePredict(self._input,28,self._ctx)
2888 if la_ == 1:
2889 self.enterOuterAlt(localctx, 1)
2890 self.state = 485
2891 self.conditionalExpression()
2892 pass
2893
2894 elif la_ == 2:
2895 self.enterOuterAlt(localctx, 2)
2896 self.state = 486
2897 self.unaryExpression()
2898 self.state = 487
2899 self.assignmentOperator()
2900 self.state = 488
2901 self.assignmentExpression()
2902 pass
2903
2904
2905 except RecognitionException as re:
2906 localctx.exception = re
2907 self._errHandler.reportError(self, re)
2908 self._errHandler.recover(self, re)
2909 finally:
2910 self.exitRule()
2911 return localctx
2912
2913 class AssignmentOperatorContext(ParserRuleContext):
2914

Callers 7

genericSelectionMethod · 0.95
genericAssociationMethod · 0.95
expressionMethod · 0.95
directDeclaratorMethod · 0.95
initializerMethod · 0.95

Calls 9

conditionalExpressionMethod · 0.95
unaryExpressionMethod · 0.95
assignmentOperatorMethod · 0.95
reportErrorMethod · 0.65
recoverMethod · 0.65
enterRuleMethod · 0.45
adaptivePredictMethod · 0.45
enterOuterAltMethod · 0.45
exitRuleMethod · 0.45

Tested by

no test coverage detected