public AmountContext amount() { AmountContext _localctx = new AmountContext(Context, State); EnterRule(_localctx, 6, RULE_amount); try { EnterOuterAlt(_localctx, 1); { State = 22; Match(AMOUNTDIGIT); } } catch (RecognitionException re) { _localctx.exception = re; ErrorHandler.ReportError(this, re); ErrorHandler.Recover(this, re); } finally { ExitRule(); } return(_localctx); }
public AmountContext amount() { AmountContext _localctx = new AmountContext(Context, State); EnterRule(_localctx, 14, RULE_amount); try { State = 70; ErrorHandler.Sync(this); switch (TokenStream.LA(1)) { case DIGIT: EnterOuterAlt(_localctx, 1); { State = 64; number(); State = 65; currencyRight(); } break; case T__6: EnterOuterAlt(_localctx, 2); { State = 67; currencyLeft(); State = 68; number(); } break; default: throw new NoViableAltException(this); } } catch (RecognitionException re) { _localctx.exception = re; ErrorHandler.ReportError(this, re); ErrorHandler.Recover(this, re); } finally { ExitRule(); } return(_localctx); }
public AmountContext amount() { AmountContext _localctx = new AmountContext(Context, State); EnterRule(_localctx, 14, RULE_amount); try { EnterOuterAlt(_localctx, 1); { State = 62; number(); State = 63; currency(); } } catch (RecognitionException re) { _localctx.exception = re; ErrorHandler.ReportError(this, re); ErrorHandler.Recover(this, re); } finally { ExitRule(); } return(_localctx); }