private ValueStmtContext valueStmt(int _p) { ParserRuleContext _parentctx = Context; int _parentState = State; ValueStmtContext _localctx = new ValueStmtContext(Context, _parentState); ValueStmtContext _prevctx = _localctx; int _startState = 200; EnterRecursionRule(_localctx, 200, RULE_valueStmt, _p); int _la; try { int _alt; EnterOuterAlt(_localctx, 1); { State = 1986; switch ( Interpreter.AdaptivePredict(TokenStream,303,Context) ) { case 1: { _localctx = new VsNewContext(_localctx); Context = _localctx; _prevctx = _localctx; State = 1933; Match(NEW); State = 1934; Match(WS); State = 1935; valueStmt(28); } break; case 2: { _localctx = new VsAddressOfContext(_localctx); Context = _localctx; _prevctx = _localctx; State = 1936; Match(ADDRESSOF); State = 1937; Match(WS); State = 1938; valueStmt(25); } break; case 3: { _localctx = new VsAssignContext(_localctx); Context = _localctx; _prevctx = _localctx; State = 1939; implicitCallStmt_InStmt(); State = 1941; _la = TokenStream.La(1); if (_la==WS) { { State = 1940; Match(WS); } } State = 1943; Match(ASSIGN); State = 1945; _la = TokenStream.La(1); if (_la==WS) { { State = 1944; Match(WS); } } State = 1947; valueStmt(24); } break; case 4: { _localctx = new VsNegationContext(_localctx); Context = _localctx; _prevctx = _localctx; State = 1949; Match(MINUS); State = 1951; _la = TokenStream.La(1); if (_la==WS) { { State = 1950; Match(WS); } } State = 1953; valueStmt(14); } break; case 5: { _localctx = new VsPlusContext(_localctx); Context = _localctx; _prevctx = _localctx; State = 1954; Match(PLUS); State = 1956; _la = TokenStream.La(1); if (_la==WS) { { State = 1955; Match(WS); } } State = 1958; valueStmt(13); } break; case 6: { _localctx = new VsNotContext(_localctx); Context = _localctx; _prevctx = _localctx; State = 1959; Match(NOT); State = 1960; Match(WS); State = 1961; valueStmt(1); } break; case 7: { _localctx = new VsLiteralContext(_localctx); Context = _localctx; _prevctx = _localctx; State = 1962; literal(); } break; case 8: { _localctx = new VsICSContext(_localctx); Context = _localctx; _prevctx = _localctx; State = 1963; implicitCallStmt_InStmt(); } break; case 9: { _localctx = new VsStructContext(_localctx); Context = _localctx; _prevctx = _localctx; State = 1964; Match(LPAREN); State = 1966; _la = TokenStream.La(1); if (_la==WS) { { State = 1965; Match(WS); } } State = 1968; valueStmt(0); State = 1979; ErrorHandler.Sync(this); _la = TokenStream.La(1); while (_la==T__0 || _la==WS) { { { State = 1970; _la = TokenStream.La(1); if (_la==WS) { { State = 1969; Match(WS); } } State = 1972; Match(T__0); State = 1974; _la = TokenStream.La(1); if (_la==WS) { { State = 1973; Match(WS); } } State = 1976; valueStmt(0); } } State = 1981; ErrorHandler.Sync(this); _la = TokenStream.La(1); } State = 1982; Match(RPAREN); } break; case 10: { _localctx = new VsTypeOfContext(_localctx); Context = _localctx; _prevctx = _localctx; State = 1984; typeOfStmt(); } break; case 11: { _localctx = new VsMidContext(_localctx); Context = _localctx; _prevctx = _localctx; State = 1985; midStmt(); } break; } Context.Stop = TokenStream.Lt(-1); State = 2146; ErrorHandler.Sync(this); _alt = Interpreter.AdaptivePredict(TokenStream,333,Context); while ( _alt!=2 && _alt!=global::Antlr4.Runtime.Atn.ATN.InvalidAltNumber ) { if ( _alt==1 ) { if ( ParseListeners!=null ) TriggerExitRuleEvent(); _prevctx = _localctx; { State = 2144; switch ( Interpreter.AdaptivePredict(TokenStream,332,Context) ) { case 1: { _localctx = new VsIsContext(new ValueStmtContext(_parentctx, _parentState)); PushNewRecursionContext(_localctx, _startState, RULE_valueStmt); State = 1988; if (!(Precpred(Context, 23))) throw new FailedPredicateException(this, "Precpred(Context, 23)"); State = 1989; Match(WS); State = 1990; Match(IS); State = 1991; Match(WS); State = 1992; valueStmt(24); } break; case 2: { _localctx = new VsLikeContext(new ValueStmtContext(_parentctx, _parentState)); PushNewRecursionContext(_localctx, _startState, RULE_valueStmt); State = 1993; if (!(Precpred(Context, 22))) throw new FailedPredicateException(this, "Precpred(Context, 22)"); State = 1994; Match(WS); State = 1995; Match(LIKE); State = 1996; Match(WS); State = 1997; valueStmt(23); } break; case 3: { _localctx = new VsGeqContext(new ValueStmtContext(_parentctx, _parentState)); PushNewRecursionContext(_localctx, _startState, RULE_valueStmt); State = 1998; if (!(Precpred(Context, 21))) throw new FailedPredicateException(this, "Precpred(Context, 21)"); State = 2000; _la = TokenStream.La(1); if (_la==WS) { { State = 1999; Match(WS); } } State = 2002; Match(GEQ); State = 2004; _la = TokenStream.La(1); if (_la==WS) { { State = 2003; Match(WS); } } State = 2006; valueStmt(22); } break; case 4: { _localctx = new VsLeqContext(new ValueStmtContext(_parentctx, _parentState)); PushNewRecursionContext(_localctx, _startState, RULE_valueStmt); State = 2007; if (!(Precpred(Context, 20))) throw new FailedPredicateException(this, "Precpred(Context, 20)"); State = 2009; _la = TokenStream.La(1); if (_la==WS) { { State = 2008; Match(WS); } } State = 2011; Match(LEQ); State = 2013; _la = TokenStream.La(1); if (_la==WS) { { State = 2012; Match(WS); } } State = 2015; valueStmt(21); } break; case 5: { _localctx = new VsGtContext(new ValueStmtContext(_parentctx, _parentState)); PushNewRecursionContext(_localctx, _startState, RULE_valueStmt); State = 2016; if (!(Precpred(Context, 19))) throw new FailedPredicateException(this, "Precpred(Context, 19)"); State = 2018; _la = TokenStream.La(1); if (_la==WS) { { State = 2017; Match(WS); } } State = 2020; Match(GT); State = 2022; _la = TokenStream.La(1); if (_la==WS) { { State = 2021; Match(WS); } } State = 2024; valueStmt(20); } break; case 6: { _localctx = new VsLtContext(new ValueStmtContext(_parentctx, _parentState)); PushNewRecursionContext(_localctx, _startState, RULE_valueStmt); State = 2025; if (!(Precpred(Context, 18))) throw new FailedPredicateException(this, "Precpred(Context, 18)"); State = 2027; _la = TokenStream.La(1); if (_la==WS) { { State = 2026; Match(WS); } } State = 2029; Match(LT); State = 2031; _la = TokenStream.La(1); if (_la==WS) { { State = 2030; Match(WS); } } State = 2033; valueStmt(19); } break; case 7: { _localctx = new VsNeqContext(new ValueStmtContext(_parentctx, _parentState)); PushNewRecursionContext(_localctx, _startState, RULE_valueStmt); State = 2034; if (!(Precpred(Context, 17))) throw new FailedPredicateException(this, "Precpred(Context, 17)"); State = 2036; _la = TokenStream.La(1); if (_la==WS) { { State = 2035; Match(WS); } } State = 2038; Match(NEQ); State = 2040; _la = TokenStream.La(1); if (_la==WS) { { State = 2039; Match(WS); } } State = 2042; valueStmt(18); } break; case 8: { _localctx = new VsEqContext(new ValueStmtContext(_parentctx, _parentState)); PushNewRecursionContext(_localctx, _startState, RULE_valueStmt); State = 2043; if (!(Precpred(Context, 16))) throw new FailedPredicateException(this, "Precpred(Context, 16)"); State = 2045; _la = TokenStream.La(1); if (_la==WS) { { State = 2044; Match(WS); } } State = 2047; Match(EQ); State = 2049; _la = TokenStream.La(1); if (_la==WS) { { State = 2048; Match(WS); } } State = 2051; valueStmt(17); } break; case 9: { _localctx = new VsAmpContext(new ValueStmtContext(_parentctx, _parentState)); PushNewRecursionContext(_localctx, _startState, RULE_valueStmt); State = 2052; if (!(Precpred(Context, 15))) throw new FailedPredicateException(this, "Precpred(Context, 15)"); State = 2053; Match(WS); State = 2054; Match(AMPERSAND); State = 2055; Match(WS); State = 2056; valueStmt(16); } break; case 10: { _localctx = new VsAddContext(new ValueStmtContext(_parentctx, _parentState)); PushNewRecursionContext(_localctx, _startState, RULE_valueStmt); State = 2057; if (!(Precpred(Context, 12))) throw new FailedPredicateException(this, "Precpred(Context, 12)"); State = 2059; _la = TokenStream.La(1); if (_la==WS) { { State = 2058; Match(WS); } } State = 2061; Match(PLUS); State = 2063; _la = TokenStream.La(1); if (_la==WS) { { State = 2062; Match(WS); } } State = 2065; valueStmt(13); } break; case 11: { _localctx = new VsModContext(new ValueStmtContext(_parentctx, _parentState)); PushNewRecursionContext(_localctx, _startState, RULE_valueStmt); State = 2066; if (!(Precpred(Context, 11))) throw new FailedPredicateException(this, "Precpred(Context, 11)"); State = 2068; _la = TokenStream.La(1); if (_la==WS) { { State = 2067; Match(WS); } } State = 2070; Match(MOD); State = 2072; _la = TokenStream.La(1); if (_la==WS) { { State = 2071; Match(WS); } } State = 2074; valueStmt(12); } break; case 12: { _localctx = new VsDivContext(new ValueStmtContext(_parentctx, _parentState)); PushNewRecursionContext(_localctx, _startState, RULE_valueStmt); State = 2075; if (!(Precpred(Context, 10))) throw new FailedPredicateException(this, "Precpred(Context, 10)"); State = 2077; _la = TokenStream.La(1); if (_la==WS) { { State = 2076; Match(WS); } } State = 2079; Match(DIV); State = 2081; _la = TokenStream.La(1); if (_la==WS) { { State = 2080; Match(WS); } } State = 2083; valueStmt(11); } break; case 13: { _localctx = new VsMultContext(new ValueStmtContext(_parentctx, _parentState)); PushNewRecursionContext(_localctx, _startState, RULE_valueStmt); State = 2084; if (!(Precpred(Context, 9))) throw new FailedPredicateException(this, "Precpred(Context, 9)"); State = 2086; _la = TokenStream.La(1); if (_la==WS) { { State = 2085; Match(WS); } } State = 2088; Match(MULT); State = 2090; _la = TokenStream.La(1); if (_la==WS) { { State = 2089; Match(WS); } } State = 2092; valueStmt(10); } break; case 14: { _localctx = new VsMinusContext(new ValueStmtContext(_parentctx, _parentState)); PushNewRecursionContext(_localctx, _startState, RULE_valueStmt); State = 2093; if (!(Precpred(Context, 8))) throw new FailedPredicateException(this, "Precpred(Context, 8)"); State = 2095; _la = TokenStream.La(1); if (_la==WS) { { State = 2094; Match(WS); } } State = 2097; Match(MINUS); State = 2099; _la = TokenStream.La(1); if (_la==WS) { { State = 2098; Match(WS); } } State = 2101; valueStmt(9); } break; case 15: { _localctx = new VsPowContext(new ValueStmtContext(_parentctx, _parentState)); PushNewRecursionContext(_localctx, _startState, RULE_valueStmt); State = 2102; if (!(Precpred(Context, 7))) throw new FailedPredicateException(this, "Precpred(Context, 7)"); State = 2104; _la = TokenStream.La(1); if (_la==WS) { { State = 2103; Match(WS); } } State = 2106; Match(POW); State = 2108; _la = TokenStream.La(1); if (_la==WS) { { State = 2107; Match(WS); } } State = 2110; valueStmt(8); } break; case 16: { _localctx = new VsImpContext(new ValueStmtContext(_parentctx, _parentState)); PushNewRecursionContext(_localctx, _startState, RULE_valueStmt); State = 2111; if (!(Precpred(Context, 6))) throw new FailedPredicateException(this, "Precpred(Context, 6)"); State = 2112; Match(WS); State = 2113; Match(IMP); State = 2114; Match(WS); State = 2115; valueStmt(7); } break; case 17: { _localctx = new VsEqvContext(new ValueStmtContext(_parentctx, _parentState)); PushNewRecursionContext(_localctx, _startState, RULE_valueStmt); State = 2116; if (!(Precpred(Context, 5))) throw new FailedPredicateException(this, "Precpred(Context, 5)"); State = 2117; Match(WS); State = 2118; Match(EQV); State = 2119; Match(WS); State = 2120; valueStmt(6); } break; case 18: { _localctx = new VsXorContext(new ValueStmtContext(_parentctx, _parentState)); PushNewRecursionContext(_localctx, _startState, RULE_valueStmt); State = 2121; if (!(Precpred(Context, 4))) throw new FailedPredicateException(this, "Precpred(Context, 4)"); State = 2123; _la = TokenStream.La(1); if (_la==WS) { { State = 2122; Match(WS); } } State = 2125; Match(XOR); State = 2127; _la = TokenStream.La(1); if (_la==WS) { { State = 2126; Match(WS); } } State = 2129; valueStmt(5); } break; case 19: { _localctx = new VsOrContext(new ValueStmtContext(_parentctx, _parentState)); PushNewRecursionContext(_localctx, _startState, RULE_valueStmt); State = 2130; if (!(Precpred(Context, 3))) throw new FailedPredicateException(this, "Precpred(Context, 3)"); State = 2132; _la = TokenStream.La(1); if (_la==WS) { { State = 2131; Match(WS); } } State = 2134; Match(OR); State = 2136; _la = TokenStream.La(1); if (_la==WS) { { State = 2135; Match(WS); } } State = 2138; valueStmt(4); } break; case 20: { _localctx = new VsAndContext(new ValueStmtContext(_parentctx, _parentState)); PushNewRecursionContext(_localctx, _startState, RULE_valueStmt); State = 2139; if (!(Precpred(Context, 2))) throw new FailedPredicateException(this, "Precpred(Context, 2)"); State = 2140; Match(WS); State = 2141; Match(AND); State = 2142; Match(WS); State = 2143; valueStmt(3); } break; } } } State = 2148; ErrorHandler.Sync(this); _alt = Interpreter.AdaptivePredict(TokenStream,333,Context); } } } catch (RecognitionException re) { _localctx.exception = re; ErrorHandler.ReportError(this, re); ErrorHandler.Recover(this, re); } finally { UnrollRecursionContexts(_parentctx); } return _localctx; }
public VsLiteralContext(ValueStmtContext context) { CopyFrom(context); }
public VsMidContext(ValueStmtContext context) { CopyFrom(context); }
public VsPlusContext(ValueStmtContext context) { CopyFrom(context); }
public VsTypeOfContext(ValueStmtContext context) { CopyFrom(context); }
public VsAssignContext(ValueStmtContext context) { CopyFrom(context); }
public VsLikeContext(ValueStmtContext context) { CopyFrom(context); }
public VsNegationContext(ValueStmtContext context) { CopyFrom(context); }
public VsAddressOfContext(ValueStmtContext context) { CopyFrom(context); }
public VsStructContext(ValueStmtContext context) { CopyFrom(context); }
public virtual void CopyFrom(ValueStmtContext context) { base.CopyFrom(context); }
private bool valueStmt_sempred(ValueStmtContext _localctx, int predIndex) { switch (predIndex) { case 0: return Precpred(Context, 23); case 1: return Precpred(Context, 22); case 2: return Precpred(Context, 21); case 3: return Precpred(Context, 20); case 4: return Precpred(Context, 19); case 5: return Precpred(Context, 18); case 6: return Precpred(Context, 17); case 7: return Precpred(Context, 16); case 8: return Precpred(Context, 15); case 9: return Precpred(Context, 12); case 10: return Precpred(Context, 11); case 11: return Precpred(Context, 10); case 12: return Precpred(Context, 9); case 13: return Precpred(Context, 8); case 14: return Precpred(Context, 7); case 15: return Precpred(Context, 6); case 16: return Precpred(Context, 5); case 17: return Precpred(Context, 4); case 18: return Precpred(Context, 3); case 19: return Precpred(Context, 2); } return true; }