Lines Matching refs:gnParser
63 class gnParser ( Parser ): class
126 super(gnParser, self).__init__(input, output=output)
136 super(gnParser.RContext, self).__init__(parent, invokingState)
140 return self.getTypedRuleContext(gnParser.StatementlistContext,0)
144 return self.getToken(gnParser.EOF, 0)
147 return gnParser.RULE_r
162 localctx = gnParser.RContext(self, self._ctx, self.state)
169 self.match(gnParser.EOF)
181 super(gnParser.StatementContext, self).__init__(parent, invokingState)
185 return self.getTypedRuleContext(gnParser.AssignmentContext,0)
189 return self.getTypedRuleContext(gnParser.CallContext,0)
193 return self.getTypedRuleContext(gnParser.ConditionContext,0)
197 return gnParser.RULE_statement
212 localctx = gnParser.StatementContext(self, self._ctx, self.state)
248 super(gnParser.LvalueContext, self).__init__(parent, invokingState)
252 return self.getToken(gnParser.Identifier, 0)
255 return self.getTypedRuleContext(gnParser.ArrayaccessContext,0)
259 return self.getTypedRuleContext(gnParser.ScopeaccessContext,0)
263 return gnParser.RULE_lvalue
278 localctx = gnParser.LvalueContext(self, self._ctx, self.state)
287 self.match(gnParser.Identifier)
314 super(gnParser.AssignmentContext, self).__init__(parent, invokingState)
318 return self.getTypedRuleContext(gnParser.LvalueContext,0)
322 return self.getToken(gnParser.AssignOp, 0)
325 return self.getTypedRuleContext(gnParser.ExprContext,0)
329 return gnParser.RULE_assignment
344 localctx = gnParser.AssignmentContext(self, self._ctx, self.state)
351 self.match(gnParser.AssignOp)
365 super(gnParser.CallContext, self).__init__(parent, invokingState)
369 return self.getToken(gnParser.Identifier, 0)
372 return self.getTypedRuleContext(gnParser.ExprlistContext,0)
376 return self.getTypedRuleContext(gnParser.BlockContext,0)
380 return gnParser.RULE_call
395 localctx = gnParser.CallContext(self, self._ctx, self.state)
401 self.match(gnParser.Identifier)
403 self.match(gnParser.T__0)
407 …gnParser.T__0) | (1 << gnParser.T__3) | (1 << gnParser.T__5) | (1 << gnParser.UnaryOp) | (1 << gnP…
413 self.match(gnParser.T__1)
433 super(gnParser.ConditionContext, self).__init__(parent, invokingState)
437 return self.getTypedRuleContext(gnParser.ExprContext,0)
442 return self.getTypedRuleContexts(gnParser.BlockContext)
444 return self.getTypedRuleContext(gnParser.BlockContext,i)
448 return self.getTypedRuleContext(gnParser.ElsecContext,0)
452 return self.getTypedRuleContext(gnParser.ConditionContext,0)
456 return gnParser.RULE_condition
471 localctx = gnParser.ConditionContext(self, self._ctx, self.state)
477 self.match(gnParser.T__2)
479 self.match(gnParser.T__0)
483 self.match(gnParser.T__1)
489 if _la==gnParser.T__9:
495 if token in [gnParser.T__2]:
499 elif token in [gnParser.T__3]:
519 super(gnParser.BlockContext, self).__init__(parent, invokingState)
523 return self.getTypedRuleContext(gnParser.StatementlistContext,0)
527 return gnParser.RULE_block
542 localctx = gnParser.BlockContext(self, self._ctx, self.state)
547 self.match(gnParser.T__3)
551 self.match(gnParser.T__4)
563 super(gnParser.StatementlistContext, self).__init__(parent, invokingState)
568 return self.getTypedRuleContexts(gnParser.StatementContext)
570 return self.getTypedRuleContext(gnParser.StatementContext,i)
575 return self.getTypedRuleContexts(gnParser.CommentContext)
577 return self.getTypedRuleContext(gnParser.CommentContext,i)
581 return gnParser.RULE_statementlist
596 localctx = gnParser.StatementlistContext(self, self._ctx, self.state)
604 …((_la) & ~0x3f) == 0 and ((1 << _la) & ((1 << gnParser.T__2) | (1 << gnParser.Identifier) | (1 << …
608 if token in [gnParser.T__2, gnParser.Identifier]:
612 elif token in [gnParser.COMMENT]:
634 super(gnParser.ArrayaccessContext, self).__init__(parent, invokingState)
638 return self.getToken(gnParser.Identifier, 0)
641 return self.getTypedRuleContext(gnParser.ExprContext,0)
645 return gnParser.RULE_arrayaccess
660 localctx = gnParser.ArrayaccessContext(self, self._ctx, self.state)
665 self.match(gnParser.Identifier)
667 self.match(gnParser.T__5)
671 self.match(gnParser.T__6)
683 super(gnParser.ScopeaccessContext, self).__init__(parent, invokingState)
688 return self.getTokens(gnParser.Identifier)
690 return self.getToken(gnParser.Identifier, i)
693 return gnParser.RULE_scopeaccess
708 localctx = gnParser.ScopeaccessContext(self, self._ctx, self.state)
713 self.match(gnParser.Identifier)
715 self.match(gnParser.T__7)
717 self.match(gnParser.Identifier)
729 super(gnParser.ExprContext, self).__init__(parent, invokingState)
733 return self.getTypedRuleContext(gnParser.UnaryexprContext,0)
738 return self.getTypedRuleContexts(gnParser.ExprContext)
740 return self.getTypedRuleContext(gnParser.ExprContext,i)
744 return self.getToken(gnParser.BinaryOp, 0)
747 return gnParser.RULE_expr
762 localctx = gnParser.ExprContext(self, self._ctx, _parentState)
779 localctx = gnParser.ExprContext(self, _parentctx, _parentState)
786 self.match(gnParser.BinaryOp)
804 super(gnParser.UnaryexprContext, self).__init__(parent, invokingState)
808 return self.getTypedRuleContext(gnParser.PrimaryexprContext,0)
812 return self.getToken(gnParser.UnaryOp, 0)
815 return self.getTypedRuleContext(gnParser.UnaryexprContext,0)
819 return gnParser.RULE_unaryexpr
834 localctx = gnParser.UnaryexprContext(self, self._ctx, self.state)
840 …if token in [gnParser.T__0, gnParser.T__3, gnParser.T__5, gnParser.Identifier, gnParser.Integer, g…
845 elif token in [gnParser.UnaryOp]:
848 self.match(gnParser.UnaryOp)
866 super(gnParser.PrimaryexprContext, self).__init__(parent, invokingState)
870 return self.getToken(gnParser.Identifier, 0)
873 return self.getToken(gnParser.Integer, 0)
876 return self.getToken(gnParser.String, 0)
879 return self.getTypedRuleContext(gnParser.CallContext,0)
883 return self.getTypedRuleContext(gnParser.ArrayaccessContext,0)
887 return self.getTypedRuleContext(gnParser.ScopeaccessContext,0)
891 return self.getTypedRuleContext(gnParser.BlockContext,0)
895 return self.getTypedRuleContext(gnParser.ExprContext,0)
899 return self.getTypedRuleContext(gnParser.ExprlistContext,0)
903 return gnParser.RULE_primaryexpr
918 localctx = gnParser.PrimaryexprContext(self, self._ctx, self.state)
928 self.match(gnParser.Identifier)
934 self.match(gnParser.Integer)
940 self.match(gnParser.String)
970 self.match(gnParser.T__0)
974 self.match(gnParser.T__1)
980 self.match(gnParser.T__5)
984 …gnParser.T__0) | (1 << gnParser.T__3) | (1 << gnParser.T__5) | (1 << gnParser.UnaryOp) | (1 << gnP…
990 if _la==gnParser.T__8:
992 self.match(gnParser.T__8)
998 self.match(gnParser.T__6)
1013 super(gnParser.ExprlistContext, self).__init__(parent, invokingState)
1018 return self.getTypedRuleContexts(gnParser.ExprContext)
1020 return self.getTypedRuleContext(gnParser.ExprContext,i)
1024 return gnParser.RULE_exprlist
1039 localctx = gnParser.ExprlistContext(self, self._ctx, self.state)
1051 self.match(gnParser.T__8)
1069 super(gnParser.ElsecContext, self).__init__(parent, invokingState)
1074 return gnParser.RULE_elsec
1089 localctx = gnParser.ElsecContext(self, self._ctx, self.state)
1094 self.match(gnParser.T__9)
1106 super(gnParser.CommentContext, self).__init__(parent, invokingState)
1110 return self.getToken(gnParser.COMMENT, 0)
1113 return gnParser.RULE_comment
1128 localctx = gnParser.CommentContext(self, self._ctx, self.state)
1133 self.match(gnParser.COMMENT)