func()

in drivers/golang/parser/age_parser.go [941:1029]


func (p *AgeParser) Value() (localctx IValueContext) {
	this := p
	_ = this

	localctx = NewValueContext(p, p.GetParserRuleContext(), p.GetState())
	p.EnterRule(localctx, 8, AgeParserRULE_value)

	defer func() {
		p.ExitRule()
	}()

	defer func() {
		if err := recover(); err != nil {
			if v, ok := err.(antlr.RecognitionException); ok {
				localctx.SetException(v)
				p.GetErrorHandler().ReportError(p, v)
				p.GetErrorHandler().Recover(p, v)
			} else {
				panic(err)
			}
		}
	}()

	p.SetState(51)
	p.GetErrorHandler().Sync(p)

	switch p.GetTokenStream().LA(1) {
	case AgeParserSTRING:
		p.EnterOuterAlt(localctx, 1)
		{
			p.SetState(43)
			p.Match(AgeParserSTRING)
		}

	case AgeParserNUMBER:
		p.EnterOuterAlt(localctx, 2)
		{
			p.SetState(44)
			p.Match(AgeParserNUMBER)
		}

	case AgeParserNUMERIC:
		p.EnterOuterAlt(localctx, 3)
		{
			p.SetState(45)
			p.Match(AgeParserNUMERIC)
		}

	case AgeParserFLOAT_EXPR:
		p.EnterOuterAlt(localctx, 4)
		{
			p.SetState(46)
			p.Match(AgeParserFLOAT_EXPR)
		}

	case AgeParserBOOL:
		p.EnterOuterAlt(localctx, 5)
		{
			p.SetState(47)
			p.Match(AgeParserBOOL)
		}

	case AgeParserNULL:
		p.EnterOuterAlt(localctx, 6)
		{
			p.SetState(48)
			p.Match(AgeParserNULL)
		}

	case AgeParserT__3:
		p.EnterOuterAlt(localctx, 7)
		{
			p.SetState(49)
			p.Properties()
		}

	case AgeParserT__0:
		p.EnterOuterAlt(localctx, 8)
		{
			p.SetState(50)
			p.Arr()
		}

	default:
		panic(antlr.NewNoViableAltException(p, nil, nil, nil, nil, nil))
	}

	return localctx
}