gen

package
v0.34.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 15, 2019 License: AGPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Excellent2LexerCOMMA     = 1
	Excellent2LexerLPAREN    = 2
	Excellent2LexerRPAREN    = 3
	Excellent2LexerLBRACK    = 4
	Excellent2LexerRBRACK    = 5
	Excellent2LexerDOT       = 6
	Excellent2LexerPLUS      = 7
	Excellent2LexerMINUS     = 8
	Excellent2LexerTIMES     = 9
	Excellent2LexerDIVIDE    = 10
	Excellent2LexerEXPONENT  = 11
	Excellent2LexerEQ        = 12
	Excellent2LexerNEQ       = 13
	Excellent2LexerLTE       = 14
	Excellent2LexerLT        = 15
	Excellent2LexerGTE       = 16
	Excellent2LexerGT        = 17
	Excellent2LexerAMPERSAND = 18
	Excellent2LexerTEXT      = 19
	Excellent2LexerNUMBER    = 20
	Excellent2LexerTRUE      = 21
	Excellent2LexerFALSE     = 22
	Excellent2LexerNULL      = 23
	Excellent2LexerNAME      = 24
	Excellent2LexerWS        = 25
	Excellent2LexerERROR     = 26
)

Excellent2Lexer tokens.

View Source
const (
	Excellent2ParserEOF       = antlr.TokenEOF
	Excellent2ParserCOMMA     = 1
	Excellent2ParserLPAREN    = 2
	Excellent2ParserRPAREN    = 3
	Excellent2ParserLBRACK    = 4
	Excellent2ParserRBRACK    = 5
	Excellent2ParserDOT       = 6
	Excellent2ParserPLUS      = 7
	Excellent2ParserMINUS     = 8
	Excellent2ParserTIMES     = 9
	Excellent2ParserDIVIDE    = 10
	Excellent2ParserEXPONENT  = 11
	Excellent2ParserEQ        = 12
	Excellent2ParserNEQ       = 13
	Excellent2ParserLTE       = 14
	Excellent2ParserLT        = 15
	Excellent2ParserGTE       = 16
	Excellent2ParserGT        = 17
	Excellent2ParserAMPERSAND = 18
	Excellent2ParserTEXT      = 19
	Excellent2ParserNUMBER    = 20
	Excellent2ParserTRUE      = 21
	Excellent2ParserFALSE     = 22
	Excellent2ParserNULL      = 23
	Excellent2ParserNAME      = 24
	Excellent2ParserWS        = 25
	Excellent2ParserERROR     = 26
)

Excellent2Parser tokens.

View Source
const (
	Excellent2ParserRULE_parse      = 0
	Excellent2ParserRULE_expression = 1
	Excellent2ParserRULE_atom       = 2
	Excellent2ParserRULE_parameters = 3
)

Excellent2Parser rules.

Variables

This section is empty.

Functions

This section is empty.

Types

type AdditionOrSubtractionContext

type AdditionOrSubtractionContext struct {
	*ExpressionContext
	// contains filtered or unexported fields
}

func NewAdditionOrSubtractionContext

func NewAdditionOrSubtractionContext(parser antlr.Parser, ctx antlr.ParserRuleContext) *AdditionOrSubtractionContext

func (*AdditionOrSubtractionContext) Accept

func (s *AdditionOrSubtractionContext) Accept(visitor antlr.ParseTreeVisitor) interface{}

func (*AdditionOrSubtractionContext) AllExpression

func (s *AdditionOrSubtractionContext) AllExpression() []IExpressionContext

func (*AdditionOrSubtractionContext) EnterRule

func (s *AdditionOrSubtractionContext) EnterRule(listener antlr.ParseTreeListener)

func (*AdditionOrSubtractionContext) ExitRule

func (*AdditionOrSubtractionContext) Expression

func (*AdditionOrSubtractionContext) GetOp

func (*AdditionOrSubtractionContext) GetRuleContext

func (s *AdditionOrSubtractionContext) GetRuleContext() antlr.RuleContext

func (*AdditionOrSubtractionContext) MINUS

func (*AdditionOrSubtractionContext) PLUS

func (*AdditionOrSubtractionContext) SetOp

type ArrayLookupContext

type ArrayLookupContext struct {
	*AtomContext
}

func NewArrayLookupContext

func NewArrayLookupContext(parser antlr.Parser, ctx antlr.ParserRuleContext) *ArrayLookupContext

func (*ArrayLookupContext) Accept

func (s *ArrayLookupContext) Accept(visitor antlr.ParseTreeVisitor) interface{}

func (*ArrayLookupContext) Atom

func (s *ArrayLookupContext) Atom() IAtomContext

func (*ArrayLookupContext) EnterRule

func (s *ArrayLookupContext) EnterRule(listener antlr.ParseTreeListener)

func (*ArrayLookupContext) ExitRule

func (s *ArrayLookupContext) ExitRule(listener antlr.ParseTreeListener)

func (*ArrayLookupContext) Expression

func (s *ArrayLookupContext) Expression() IExpressionContext

func (*ArrayLookupContext) GetRuleContext

func (s *ArrayLookupContext) GetRuleContext() antlr.RuleContext

func (*ArrayLookupContext) LBRACK

func (*ArrayLookupContext) RBRACK

type AtomContext

type AtomContext struct {
	*antlr.BaseParserRuleContext
	// contains filtered or unexported fields
}

func NewAtomContext

func NewAtomContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *AtomContext

func NewEmptyAtomContext

func NewEmptyAtomContext() *AtomContext

func (*AtomContext) CopyFrom

func (s *AtomContext) CopyFrom(ctx *AtomContext)

func (*AtomContext) GetParser

func (s *AtomContext) GetParser() antlr.Parser

func (*AtomContext) GetRuleContext

func (s *AtomContext) GetRuleContext() antlr.RuleContext

func (*AtomContext) IsAtomContext

func (*AtomContext) IsAtomContext()

func (*AtomContext) ToStringTree

func (s *AtomContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string

type AtomReferenceContext

type AtomReferenceContext struct {
	*ExpressionContext
}

func NewAtomReferenceContext

func NewAtomReferenceContext(parser antlr.Parser, ctx antlr.ParserRuleContext) *AtomReferenceContext

func (*AtomReferenceContext) Accept

func (s *AtomReferenceContext) Accept(visitor antlr.ParseTreeVisitor) interface{}

func (*AtomReferenceContext) Atom

func (*AtomReferenceContext) EnterRule

func (s *AtomReferenceContext) EnterRule(listener antlr.ParseTreeListener)

func (*AtomReferenceContext) ExitRule

func (s *AtomReferenceContext) ExitRule(listener antlr.ParseTreeListener)

func (*AtomReferenceContext) GetRuleContext

func (s *AtomReferenceContext) GetRuleContext() antlr.RuleContext

type BaseExcellent2Listener added in v0.4.0

type BaseExcellent2Listener struct{}

BaseExcellent2Listener is a complete listener for a parse tree produced by Excellent2Parser.

func (*BaseExcellent2Listener) EnterAdditionOrSubtraction added in v0.4.0

func (s *BaseExcellent2Listener) EnterAdditionOrSubtraction(ctx *AdditionOrSubtractionContext)

EnterAdditionOrSubtraction is called when production additionOrSubtraction is entered.

func (*BaseExcellent2Listener) EnterArrayLookup added in v0.4.0

func (s *BaseExcellent2Listener) EnterArrayLookup(ctx *ArrayLookupContext)

EnterArrayLookup is called when production arrayLookup is entered.

func (*BaseExcellent2Listener) EnterAtomReference added in v0.4.0

func (s *BaseExcellent2Listener) EnterAtomReference(ctx *AtomReferenceContext)

EnterAtomReference is called when production atomReference is entered.

func (*BaseExcellent2Listener) EnterComparison added in v0.4.0

func (s *BaseExcellent2Listener) EnterComparison(ctx *ComparisonContext)

EnterComparison is called when production comparison is entered.

func (*BaseExcellent2Listener) EnterConcatenation added in v0.4.0

func (s *BaseExcellent2Listener) EnterConcatenation(ctx *ConcatenationContext)

EnterConcatenation is called when production concatenation is entered.

func (*BaseExcellent2Listener) EnterContextReference added in v0.4.0

func (s *BaseExcellent2Listener) EnterContextReference(ctx *ContextReferenceContext)

EnterContextReference is called when production contextReference is entered.

func (*BaseExcellent2Listener) EnterDotLookup added in v0.4.0

func (s *BaseExcellent2Listener) EnterDotLookup(ctx *DotLookupContext)

EnterDotLookup is called when production dotLookup is entered.

func (*BaseExcellent2Listener) EnterEquality added in v0.4.0

func (s *BaseExcellent2Listener) EnterEquality(ctx *EqualityContext)

EnterEquality is called when production equality is entered.

func (*BaseExcellent2Listener) EnterEveryRule added in v0.4.0

func (s *BaseExcellent2Listener) EnterEveryRule(ctx antlr.ParserRuleContext)

EnterEveryRule is called when any rule is entered.

func (*BaseExcellent2Listener) EnterExponent added in v0.4.0

func (s *BaseExcellent2Listener) EnterExponent(ctx *ExponentContext)

EnterExponent is called when production exponent is entered.

func (*BaseExcellent2Listener) EnterFalse added in v0.4.0

func (s *BaseExcellent2Listener) EnterFalse(ctx *FalseContext)

EnterFalse is called when production false is entered.

func (*BaseExcellent2Listener) EnterFunctionCall added in v0.4.0

func (s *BaseExcellent2Listener) EnterFunctionCall(ctx *FunctionCallContext)

EnterFunctionCall is called when production functionCall is entered.

func (*BaseExcellent2Listener) EnterFunctionParameters added in v0.4.0

func (s *BaseExcellent2Listener) EnterFunctionParameters(ctx *FunctionParametersContext)

EnterFunctionParameters is called when production functionParameters is entered.

func (*BaseExcellent2Listener) EnterMultiplicationOrDivision added in v0.4.0

func (s *BaseExcellent2Listener) EnterMultiplicationOrDivision(ctx *MultiplicationOrDivisionContext)

EnterMultiplicationOrDivision is called when production multiplicationOrDivision is entered.

func (*BaseExcellent2Listener) EnterNegation added in v0.4.0

func (s *BaseExcellent2Listener) EnterNegation(ctx *NegationContext)

EnterNegation is called when production negation is entered.

func (*BaseExcellent2Listener) EnterNull added in v0.9.2

func (s *BaseExcellent2Listener) EnterNull(ctx *NullContext)

EnterNull is called when production null is entered.

func (*BaseExcellent2Listener) EnterNumberLiteral added in v0.9.4

func (s *BaseExcellent2Listener) EnterNumberLiteral(ctx *NumberLiteralContext)

EnterNumberLiteral is called when production numberLiteral is entered.

func (*BaseExcellent2Listener) EnterParentheses added in v0.4.0

func (s *BaseExcellent2Listener) EnterParentheses(ctx *ParenthesesContext)

EnterParentheses is called when production parentheses is entered.

func (*BaseExcellent2Listener) EnterParse added in v0.4.0

func (s *BaseExcellent2Listener) EnterParse(ctx *ParseContext)

EnterParse is called when production parse is entered.

func (*BaseExcellent2Listener) EnterTextLiteral added in v0.9.4

func (s *BaseExcellent2Listener) EnterTextLiteral(ctx *TextLiteralContext)

EnterTextLiteral is called when production textLiteral is entered.

func (*BaseExcellent2Listener) EnterTrue added in v0.4.0

func (s *BaseExcellent2Listener) EnterTrue(ctx *TrueContext)

EnterTrue is called when production true is entered.

func (*BaseExcellent2Listener) ExitAdditionOrSubtraction added in v0.4.0

func (s *BaseExcellent2Listener) ExitAdditionOrSubtraction(ctx *AdditionOrSubtractionContext)

ExitAdditionOrSubtraction is called when production additionOrSubtraction is exited.

func (*BaseExcellent2Listener) ExitArrayLookup added in v0.4.0

func (s *BaseExcellent2Listener) ExitArrayLookup(ctx *ArrayLookupContext)

ExitArrayLookup is called when production arrayLookup is exited.

func (*BaseExcellent2Listener) ExitAtomReference added in v0.4.0

func (s *BaseExcellent2Listener) ExitAtomReference(ctx *AtomReferenceContext)

ExitAtomReference is called when production atomReference is exited.

func (*BaseExcellent2Listener) ExitComparison added in v0.4.0

func (s *BaseExcellent2Listener) ExitComparison(ctx *ComparisonContext)

ExitComparison is called when production comparison is exited.

func (*BaseExcellent2Listener) ExitConcatenation added in v0.4.0

func (s *BaseExcellent2Listener) ExitConcatenation(ctx *ConcatenationContext)

ExitConcatenation is called when production concatenation is exited.

func (*BaseExcellent2Listener) ExitContextReference added in v0.4.0

func (s *BaseExcellent2Listener) ExitContextReference(ctx *ContextReferenceContext)

ExitContextReference is called when production contextReference is exited.

func (*BaseExcellent2Listener) ExitDotLookup added in v0.4.0

func (s *BaseExcellent2Listener) ExitDotLookup(ctx *DotLookupContext)

ExitDotLookup is called when production dotLookup is exited.

func (*BaseExcellent2Listener) ExitEquality added in v0.4.0

func (s *BaseExcellent2Listener) ExitEquality(ctx *EqualityContext)

ExitEquality is called when production equality is exited.

func (*BaseExcellent2Listener) ExitEveryRule added in v0.4.0

func (s *BaseExcellent2Listener) ExitEveryRule(ctx antlr.ParserRuleContext)

ExitEveryRule is called when any rule is exited.

func (*BaseExcellent2Listener) ExitExponent added in v0.4.0

func (s *BaseExcellent2Listener) ExitExponent(ctx *ExponentContext)

ExitExponent is called when production exponent is exited.

func (*BaseExcellent2Listener) ExitFalse added in v0.4.0

func (s *BaseExcellent2Listener) ExitFalse(ctx *FalseContext)

ExitFalse is called when production false is exited.

func (*BaseExcellent2Listener) ExitFunctionCall added in v0.4.0

func (s *BaseExcellent2Listener) ExitFunctionCall(ctx *FunctionCallContext)

ExitFunctionCall is called when production functionCall is exited.

func (*BaseExcellent2Listener) ExitFunctionParameters added in v0.4.0

func (s *BaseExcellent2Listener) ExitFunctionParameters(ctx *FunctionParametersContext)

ExitFunctionParameters is called when production functionParameters is exited.

func (*BaseExcellent2Listener) ExitMultiplicationOrDivision added in v0.4.0

func (s *BaseExcellent2Listener) ExitMultiplicationOrDivision(ctx *MultiplicationOrDivisionContext)

ExitMultiplicationOrDivision is called when production multiplicationOrDivision is exited.

func (*BaseExcellent2Listener) ExitNegation added in v0.4.0

func (s *BaseExcellent2Listener) ExitNegation(ctx *NegationContext)

ExitNegation is called when production negation is exited.

func (*BaseExcellent2Listener) ExitNull added in v0.9.2

func (s *BaseExcellent2Listener) ExitNull(ctx *NullContext)

ExitNull is called when production null is exited.

func (*BaseExcellent2Listener) ExitNumberLiteral added in v0.9.4

func (s *BaseExcellent2Listener) ExitNumberLiteral(ctx *NumberLiteralContext)

ExitNumberLiteral is called when production numberLiteral is exited.

func (*BaseExcellent2Listener) ExitParentheses added in v0.4.0

func (s *BaseExcellent2Listener) ExitParentheses(ctx *ParenthesesContext)

ExitParentheses is called when production parentheses is exited.

func (*BaseExcellent2Listener) ExitParse added in v0.4.0

func (s *BaseExcellent2Listener) ExitParse(ctx *ParseContext)

ExitParse is called when production parse is exited.

func (*BaseExcellent2Listener) ExitTextLiteral added in v0.9.4

func (s *BaseExcellent2Listener) ExitTextLiteral(ctx *TextLiteralContext)

ExitTextLiteral is called when production textLiteral is exited.

func (*BaseExcellent2Listener) ExitTrue added in v0.4.0

func (s *BaseExcellent2Listener) ExitTrue(ctx *TrueContext)

ExitTrue is called when production true is exited.

func (*BaseExcellent2Listener) VisitErrorNode added in v0.4.0

func (s *BaseExcellent2Listener) VisitErrorNode(node antlr.ErrorNode)

VisitErrorNode is called when an error node is visited.

func (*BaseExcellent2Listener) VisitTerminal added in v0.4.0

func (s *BaseExcellent2Listener) VisitTerminal(node antlr.TerminalNode)

VisitTerminal is called when a terminal node is visited.

type BaseExcellent2Visitor added in v0.4.0

type BaseExcellent2Visitor struct {
	*antlr.BaseParseTreeVisitor
}

func (*BaseExcellent2Visitor) VisitAdditionOrSubtraction added in v0.4.0

func (v *BaseExcellent2Visitor) VisitAdditionOrSubtraction(ctx *AdditionOrSubtractionContext) interface{}

func (*BaseExcellent2Visitor) VisitArrayLookup added in v0.4.0

func (v *BaseExcellent2Visitor) VisitArrayLookup(ctx *ArrayLookupContext) interface{}

func (*BaseExcellent2Visitor) VisitAtomReference added in v0.4.0

func (v *BaseExcellent2Visitor) VisitAtomReference(ctx *AtomReferenceContext) interface{}

func (*BaseExcellent2Visitor) VisitComparison added in v0.4.0

func (v *BaseExcellent2Visitor) VisitComparison(ctx *ComparisonContext) interface{}

func (*BaseExcellent2Visitor) VisitConcatenation added in v0.4.0

func (v *BaseExcellent2Visitor) VisitConcatenation(ctx *ConcatenationContext) interface{}

func (*BaseExcellent2Visitor) VisitContextReference added in v0.4.0

func (v *BaseExcellent2Visitor) VisitContextReference(ctx *ContextReferenceContext) interface{}

func (*BaseExcellent2Visitor) VisitDotLookup added in v0.4.0

func (v *BaseExcellent2Visitor) VisitDotLookup(ctx *DotLookupContext) interface{}

func (*BaseExcellent2Visitor) VisitEquality added in v0.4.0

func (v *BaseExcellent2Visitor) VisitEquality(ctx *EqualityContext) interface{}

func (*BaseExcellent2Visitor) VisitExponent added in v0.4.0

func (v *BaseExcellent2Visitor) VisitExponent(ctx *ExponentContext) interface{}

func (*BaseExcellent2Visitor) VisitFalse added in v0.4.0

func (v *BaseExcellent2Visitor) VisitFalse(ctx *FalseContext) interface{}

func (*BaseExcellent2Visitor) VisitFunctionCall added in v0.4.0

func (v *BaseExcellent2Visitor) VisitFunctionCall(ctx *FunctionCallContext) interface{}

func (*BaseExcellent2Visitor) VisitFunctionParameters added in v0.4.0

func (v *BaseExcellent2Visitor) VisitFunctionParameters(ctx *FunctionParametersContext) interface{}

func (*BaseExcellent2Visitor) VisitMultiplicationOrDivision added in v0.4.0

func (v *BaseExcellent2Visitor) VisitMultiplicationOrDivision(ctx *MultiplicationOrDivisionContext) interface{}

func (*BaseExcellent2Visitor) VisitNegation added in v0.4.0

func (v *BaseExcellent2Visitor) VisitNegation(ctx *NegationContext) interface{}

func (*BaseExcellent2Visitor) VisitNull added in v0.9.2

func (v *BaseExcellent2Visitor) VisitNull(ctx *NullContext) interface{}

func (*BaseExcellent2Visitor) VisitNumberLiteral added in v0.9.4

func (v *BaseExcellent2Visitor) VisitNumberLiteral(ctx *NumberLiteralContext) interface{}

func (*BaseExcellent2Visitor) VisitParentheses added in v0.4.0

func (v *BaseExcellent2Visitor) VisitParentheses(ctx *ParenthesesContext) interface{}

func (*BaseExcellent2Visitor) VisitParse added in v0.4.0

func (v *BaseExcellent2Visitor) VisitParse(ctx *ParseContext) interface{}

func (*BaseExcellent2Visitor) VisitTextLiteral added in v0.9.4

func (v *BaseExcellent2Visitor) VisitTextLiteral(ctx *TextLiteralContext) interface{}

func (*BaseExcellent2Visitor) VisitTrue added in v0.4.0

func (v *BaseExcellent2Visitor) VisitTrue(ctx *TrueContext) interface{}

type ComparisonContext

type ComparisonContext struct {
	*ExpressionContext
	// contains filtered or unexported fields
}

func NewComparisonContext

func NewComparisonContext(parser antlr.Parser, ctx antlr.ParserRuleContext) *ComparisonContext

func (*ComparisonContext) Accept

func (s *ComparisonContext) Accept(visitor antlr.ParseTreeVisitor) interface{}

func (*ComparisonContext) AllExpression

func (s *ComparisonContext) AllExpression() []IExpressionContext

func (*ComparisonContext) EnterRule

func (s *ComparisonContext) EnterRule(listener antlr.ParseTreeListener)

func (*ComparisonContext) ExitRule

func (s *ComparisonContext) ExitRule(listener antlr.ParseTreeListener)

func (*ComparisonContext) Expression

func (s *ComparisonContext) Expression(i int) IExpressionContext

func (*ComparisonContext) GT

func (*ComparisonContext) GTE

func (*ComparisonContext) GetOp

func (s *ComparisonContext) GetOp() antlr.Token

func (*ComparisonContext) GetRuleContext

func (s *ComparisonContext) GetRuleContext() antlr.RuleContext

func (*ComparisonContext) LT

func (*ComparisonContext) LTE

func (*ComparisonContext) SetOp

func (s *ComparisonContext) SetOp(v antlr.Token)

type ConcatenationContext

type ConcatenationContext struct {
	*ExpressionContext
}

func NewConcatenationContext

func NewConcatenationContext(parser antlr.Parser, ctx antlr.ParserRuleContext) *ConcatenationContext

func (*ConcatenationContext) AMPERSAND

func (s *ConcatenationContext) AMPERSAND() antlr.TerminalNode

func (*ConcatenationContext) Accept

func (s *ConcatenationContext) Accept(visitor antlr.ParseTreeVisitor) interface{}

func (*ConcatenationContext) AllExpression

func (s *ConcatenationContext) AllExpression() []IExpressionContext

func (*ConcatenationContext) EnterRule

func (s *ConcatenationContext) EnterRule(listener antlr.ParseTreeListener)

func (*ConcatenationContext) ExitRule

func (s *ConcatenationContext) ExitRule(listener antlr.ParseTreeListener)

func (*ConcatenationContext) Expression

func (s *ConcatenationContext) Expression(i int) IExpressionContext

func (*ConcatenationContext) GetRuleContext

func (s *ConcatenationContext) GetRuleContext() antlr.RuleContext

type ContextReferenceContext

type ContextReferenceContext struct {
	*AtomContext
}

func NewContextReferenceContext

func NewContextReferenceContext(parser antlr.Parser, ctx antlr.ParserRuleContext) *ContextReferenceContext

func (*ContextReferenceContext) Accept

func (s *ContextReferenceContext) Accept(visitor antlr.ParseTreeVisitor) interface{}

func (*ContextReferenceContext) EnterRule

func (s *ContextReferenceContext) EnterRule(listener antlr.ParseTreeListener)

func (*ContextReferenceContext) ExitRule

func (s *ContextReferenceContext) ExitRule(listener antlr.ParseTreeListener)

func (*ContextReferenceContext) GetRuleContext

func (s *ContextReferenceContext) GetRuleContext() antlr.RuleContext

func (*ContextReferenceContext) NAME

type DotLookupContext

type DotLookupContext struct {
	*AtomContext
}

func NewDotLookupContext

func NewDotLookupContext(parser antlr.Parser, ctx antlr.ParserRuleContext) *DotLookupContext

func (*DotLookupContext) Accept

func (s *DotLookupContext) Accept(visitor antlr.ParseTreeVisitor) interface{}

func (*DotLookupContext) Atom

func (s *DotLookupContext) Atom() IAtomContext

func (*DotLookupContext) DOT

func (*DotLookupContext) EnterRule

func (s *DotLookupContext) EnterRule(listener antlr.ParseTreeListener)

func (*DotLookupContext) ExitRule

func (s *DotLookupContext) ExitRule(listener antlr.ParseTreeListener)

func (*DotLookupContext) GetRuleContext

func (s *DotLookupContext) GetRuleContext() antlr.RuleContext

func (*DotLookupContext) NAME added in v0.32.0

type EqualityContext

type EqualityContext struct {
	*ExpressionContext
	// contains filtered or unexported fields
}

func NewEqualityContext

func NewEqualityContext(parser antlr.Parser, ctx antlr.ParserRuleContext) *EqualityContext

func (*EqualityContext) Accept

func (s *EqualityContext) Accept(visitor antlr.ParseTreeVisitor) interface{}

func (*EqualityContext) AllExpression

func (s *EqualityContext) AllExpression() []IExpressionContext

func (*EqualityContext) EQ

func (*EqualityContext) EnterRule

func (s *EqualityContext) EnterRule(listener antlr.ParseTreeListener)

func (*EqualityContext) ExitRule

func (s *EqualityContext) ExitRule(listener antlr.ParseTreeListener)

func (*EqualityContext) Expression

func (s *EqualityContext) Expression(i int) IExpressionContext

func (*EqualityContext) GetOp

func (s *EqualityContext) GetOp() antlr.Token

func (*EqualityContext) GetRuleContext

func (s *EqualityContext) GetRuleContext() antlr.RuleContext

func (*EqualityContext) NEQ

func (*EqualityContext) SetOp

func (s *EqualityContext) SetOp(v antlr.Token)

type Excellent2Lexer added in v0.4.0

type Excellent2Lexer struct {
	*antlr.BaseLexer
	// contains filtered or unexported fields
}

func NewExcellent2Lexer added in v0.4.0

func NewExcellent2Lexer(input antlr.CharStream) *Excellent2Lexer

type Excellent2Listener added in v0.4.0

type Excellent2Listener interface {
	antlr.ParseTreeListener

	// EnterParse is called when entering the parse production.
	EnterParse(c *ParseContext)

	// EnterNegation is called when entering the negation production.
	EnterNegation(c *NegationContext)

	// EnterComparison is called when entering the comparison production.
	EnterComparison(c *ComparisonContext)

	// EnterFalse is called when entering the false production.
	EnterFalse(c *FalseContext)

	// EnterAdditionOrSubtraction is called when entering the additionOrSubtraction production.
	EnterAdditionOrSubtraction(c *AdditionOrSubtractionContext)

	// EnterTextLiteral is called when entering the textLiteral production.
	EnterTextLiteral(c *TextLiteralContext)

	// EnterConcatenation is called when entering the concatenation production.
	EnterConcatenation(c *ConcatenationContext)

	// EnterNull is called when entering the null production.
	EnterNull(c *NullContext)

	// EnterMultiplicationOrDivision is called when entering the multiplicationOrDivision production.
	EnterMultiplicationOrDivision(c *MultiplicationOrDivisionContext)

	// EnterTrue is called when entering the true production.
	EnterTrue(c *TrueContext)

	// EnterAtomReference is called when entering the atomReference production.
	EnterAtomReference(c *AtomReferenceContext)

	// EnterEquality is called when entering the equality production.
	EnterEquality(c *EqualityContext)

	// EnterNumberLiteral is called when entering the numberLiteral production.
	EnterNumberLiteral(c *NumberLiteralContext)

	// EnterExponent is called when entering the exponent production.
	EnterExponent(c *ExponentContext)

	// EnterParentheses is called when entering the parentheses production.
	EnterParentheses(c *ParenthesesContext)

	// EnterDotLookup is called when entering the dotLookup production.
	EnterDotLookup(c *DotLookupContext)

	// EnterFunctionCall is called when entering the functionCall production.
	EnterFunctionCall(c *FunctionCallContext)

	// EnterArrayLookup is called when entering the arrayLookup production.
	EnterArrayLookup(c *ArrayLookupContext)

	// EnterContextReference is called when entering the contextReference production.
	EnterContextReference(c *ContextReferenceContext)

	// EnterFunctionParameters is called when entering the functionParameters production.
	EnterFunctionParameters(c *FunctionParametersContext)

	// ExitParse is called when exiting the parse production.
	ExitParse(c *ParseContext)

	// ExitNegation is called when exiting the negation production.
	ExitNegation(c *NegationContext)

	// ExitComparison is called when exiting the comparison production.
	ExitComparison(c *ComparisonContext)

	// ExitFalse is called when exiting the false production.
	ExitFalse(c *FalseContext)

	// ExitAdditionOrSubtraction is called when exiting the additionOrSubtraction production.
	ExitAdditionOrSubtraction(c *AdditionOrSubtractionContext)

	// ExitTextLiteral is called when exiting the textLiteral production.
	ExitTextLiteral(c *TextLiteralContext)

	// ExitConcatenation is called when exiting the concatenation production.
	ExitConcatenation(c *ConcatenationContext)

	// ExitNull is called when exiting the null production.
	ExitNull(c *NullContext)

	// ExitMultiplicationOrDivision is called when exiting the multiplicationOrDivision production.
	ExitMultiplicationOrDivision(c *MultiplicationOrDivisionContext)

	// ExitTrue is called when exiting the true production.
	ExitTrue(c *TrueContext)

	// ExitAtomReference is called when exiting the atomReference production.
	ExitAtomReference(c *AtomReferenceContext)

	// ExitEquality is called when exiting the equality production.
	ExitEquality(c *EqualityContext)

	// ExitNumberLiteral is called when exiting the numberLiteral production.
	ExitNumberLiteral(c *NumberLiteralContext)

	// ExitExponent is called when exiting the exponent production.
	ExitExponent(c *ExponentContext)

	// ExitParentheses is called when exiting the parentheses production.
	ExitParentheses(c *ParenthesesContext)

	// ExitDotLookup is called when exiting the dotLookup production.
	ExitDotLookup(c *DotLookupContext)

	// ExitFunctionCall is called when exiting the functionCall production.
	ExitFunctionCall(c *FunctionCallContext)

	// ExitArrayLookup is called when exiting the arrayLookup production.
	ExitArrayLookup(c *ArrayLookupContext)

	// ExitContextReference is called when exiting the contextReference production.
	ExitContextReference(c *ContextReferenceContext)

	// ExitFunctionParameters is called when exiting the functionParameters production.
	ExitFunctionParameters(c *FunctionParametersContext)
}

Excellent2Listener is a complete listener for a parse tree produced by Excellent2Parser.

type Excellent2Parser added in v0.4.0

type Excellent2Parser struct {
	*antlr.BaseParser
}

func NewExcellent2Parser added in v0.4.0

func NewExcellent2Parser(input antlr.TokenStream) *Excellent2Parser

func (*Excellent2Parser) Atom added in v0.4.0

func (p *Excellent2Parser) Atom() (localctx IAtomContext)

func (*Excellent2Parser) Atom_Sempred added in v0.4.0

func (p *Excellent2Parser) Atom_Sempred(localctx antlr.RuleContext, predIndex int) bool

func (*Excellent2Parser) Expression added in v0.4.0

func (p *Excellent2Parser) Expression() (localctx IExpressionContext)

func (*Excellent2Parser) Expression_Sempred added in v0.4.0

func (p *Excellent2Parser) Expression_Sempred(localctx antlr.RuleContext, predIndex int) bool

func (*Excellent2Parser) Parameters added in v0.4.0

func (p *Excellent2Parser) Parameters() (localctx IParametersContext)

func (*Excellent2Parser) Parse added in v0.4.0

func (p *Excellent2Parser) Parse() (localctx IParseContext)

func (*Excellent2Parser) Sempred added in v0.4.0

func (p *Excellent2Parser) Sempred(localctx antlr.RuleContext, ruleIndex, predIndex int) bool

type Excellent2Visitor added in v0.4.0

type Excellent2Visitor interface {
	antlr.ParseTreeVisitor

	// Visit a parse tree produced by Excellent2Parser#parse.
	VisitParse(ctx *ParseContext) interface{}

	// Visit a parse tree produced by Excellent2Parser#negation.
	VisitNegation(ctx *NegationContext) interface{}

	// Visit a parse tree produced by Excellent2Parser#comparison.
	VisitComparison(ctx *ComparisonContext) interface{}

	// Visit a parse tree produced by Excellent2Parser#false.
	VisitFalse(ctx *FalseContext) interface{}

	// Visit a parse tree produced by Excellent2Parser#additionOrSubtraction.
	VisitAdditionOrSubtraction(ctx *AdditionOrSubtractionContext) interface{}

	// Visit a parse tree produced by Excellent2Parser#textLiteral.
	VisitTextLiteral(ctx *TextLiteralContext) interface{}

	// Visit a parse tree produced by Excellent2Parser#concatenation.
	VisitConcatenation(ctx *ConcatenationContext) interface{}

	// Visit a parse tree produced by Excellent2Parser#null.
	VisitNull(ctx *NullContext) interface{}

	// Visit a parse tree produced by Excellent2Parser#multiplicationOrDivision.
	VisitMultiplicationOrDivision(ctx *MultiplicationOrDivisionContext) interface{}

	// Visit a parse tree produced by Excellent2Parser#true.
	VisitTrue(ctx *TrueContext) interface{}

	// Visit a parse tree produced by Excellent2Parser#atomReference.
	VisitAtomReference(ctx *AtomReferenceContext) interface{}

	// Visit a parse tree produced by Excellent2Parser#equality.
	VisitEquality(ctx *EqualityContext) interface{}

	// Visit a parse tree produced by Excellent2Parser#numberLiteral.
	VisitNumberLiteral(ctx *NumberLiteralContext) interface{}

	// Visit a parse tree produced by Excellent2Parser#exponent.
	VisitExponent(ctx *ExponentContext) interface{}

	// Visit a parse tree produced by Excellent2Parser#parentheses.
	VisitParentheses(ctx *ParenthesesContext) interface{}

	// Visit a parse tree produced by Excellent2Parser#dotLookup.
	VisitDotLookup(ctx *DotLookupContext) interface{}

	// Visit a parse tree produced by Excellent2Parser#functionCall.
	VisitFunctionCall(ctx *FunctionCallContext) interface{}

	// Visit a parse tree produced by Excellent2Parser#arrayLookup.
	VisitArrayLookup(ctx *ArrayLookupContext) interface{}

	// Visit a parse tree produced by Excellent2Parser#contextReference.
	VisitContextReference(ctx *ContextReferenceContext) interface{}

	// Visit a parse tree produced by Excellent2Parser#functionParameters.
	VisitFunctionParameters(ctx *FunctionParametersContext) interface{}
}

A complete Visitor for a parse tree produced by Excellent2Parser.

type ExponentContext

type ExponentContext struct {
	*ExpressionContext
}

func NewExponentContext

func NewExponentContext(parser antlr.Parser, ctx antlr.ParserRuleContext) *ExponentContext

func (*ExponentContext) Accept

func (s *ExponentContext) Accept(visitor antlr.ParseTreeVisitor) interface{}

func (*ExponentContext) AllExpression

func (s *ExponentContext) AllExpression() []IExpressionContext

func (*ExponentContext) EXPONENT

func (s *ExponentContext) EXPONENT() antlr.TerminalNode

func (*ExponentContext) EnterRule

func (s *ExponentContext) EnterRule(listener antlr.ParseTreeListener)

func (*ExponentContext) ExitRule

func (s *ExponentContext) ExitRule(listener antlr.ParseTreeListener)

func (*ExponentContext) Expression

func (s *ExponentContext) Expression(i int) IExpressionContext

func (*ExponentContext) GetRuleContext

func (s *ExponentContext) GetRuleContext() antlr.RuleContext

type ExpressionContext

type ExpressionContext struct {
	*antlr.BaseParserRuleContext
	// contains filtered or unexported fields
}

func NewEmptyExpressionContext

func NewEmptyExpressionContext() *ExpressionContext

func NewExpressionContext

func NewExpressionContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *ExpressionContext

func (*ExpressionContext) CopyFrom

func (s *ExpressionContext) CopyFrom(ctx *ExpressionContext)

func (*ExpressionContext) GetParser

func (s *ExpressionContext) GetParser() antlr.Parser

func (*ExpressionContext) GetRuleContext

func (s *ExpressionContext) GetRuleContext() antlr.RuleContext

func (*ExpressionContext) IsExpressionContext

func (*ExpressionContext) IsExpressionContext()

func (*ExpressionContext) ToStringTree

func (s *ExpressionContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string

type FalseContext

type FalseContext struct {
	*ExpressionContext
}

func NewFalseContext

func NewFalseContext(parser antlr.Parser, ctx antlr.ParserRuleContext) *FalseContext

func (*FalseContext) Accept

func (s *FalseContext) Accept(visitor antlr.ParseTreeVisitor) interface{}

func (*FalseContext) EnterRule

func (s *FalseContext) EnterRule(listener antlr.ParseTreeListener)

func (*FalseContext) ExitRule

func (s *FalseContext) ExitRule(listener antlr.ParseTreeListener)

func (*FalseContext) FALSE

func (s *FalseContext) FALSE() antlr.TerminalNode

func (*FalseContext) GetRuleContext

func (s *FalseContext) GetRuleContext() antlr.RuleContext

type FunctionCallContext

type FunctionCallContext struct {
	*AtomContext
}

func NewFunctionCallContext

func NewFunctionCallContext(parser antlr.Parser, ctx antlr.ParserRuleContext) *FunctionCallContext

func (*FunctionCallContext) Accept

func (s *FunctionCallContext) Accept(visitor antlr.ParseTreeVisitor) interface{}

func (*FunctionCallContext) Atom added in v0.32.0

func (*FunctionCallContext) EnterRule

func (s *FunctionCallContext) EnterRule(listener antlr.ParseTreeListener)

func (*FunctionCallContext) ExitRule

func (s *FunctionCallContext) ExitRule(listener antlr.ParseTreeListener)

func (*FunctionCallContext) GetRuleContext

func (s *FunctionCallContext) GetRuleContext() antlr.RuleContext

func (*FunctionCallContext) LPAREN

func (*FunctionCallContext) Parameters

func (s *FunctionCallContext) Parameters() IParametersContext

func (*FunctionCallContext) RPAREN

type FunctionParametersContext

type FunctionParametersContext struct {
	*ParametersContext
}

func NewFunctionParametersContext

func NewFunctionParametersContext(parser antlr.Parser, ctx antlr.ParserRuleContext) *FunctionParametersContext

func (*FunctionParametersContext) Accept

func (s *FunctionParametersContext) Accept(visitor antlr.ParseTreeVisitor) interface{}

func (*FunctionParametersContext) AllCOMMA

func (*FunctionParametersContext) AllExpression

func (s *FunctionParametersContext) AllExpression() []IExpressionContext

func (*FunctionParametersContext) COMMA

func (*FunctionParametersContext) EnterRule

func (s *FunctionParametersContext) EnterRule(listener antlr.ParseTreeListener)

func (*FunctionParametersContext) ExitRule

func (s *FunctionParametersContext) ExitRule(listener antlr.ParseTreeListener)

func (*FunctionParametersContext) Expression

func (*FunctionParametersContext) GetRuleContext

func (s *FunctionParametersContext) GetRuleContext() antlr.RuleContext

type IAtomContext

type IAtomContext interface {
	antlr.ParserRuleContext

	// GetParser returns the parser.
	GetParser() antlr.Parser

	// IsAtomContext differentiates from other interfaces.
	IsAtomContext()
}

IAtomContext is an interface to support dynamic dispatch.

type IExpressionContext

type IExpressionContext interface {
	antlr.ParserRuleContext

	// GetParser returns the parser.
	GetParser() antlr.Parser

	// IsExpressionContext differentiates from other interfaces.
	IsExpressionContext()
}

IExpressionContext is an interface to support dynamic dispatch.

type IParametersContext

type IParametersContext interface {
	antlr.ParserRuleContext

	// GetParser returns the parser.
	GetParser() antlr.Parser

	// IsParametersContext differentiates from other interfaces.
	IsParametersContext()
}

IParametersContext is an interface to support dynamic dispatch.

type IParseContext

type IParseContext interface {
	antlr.ParserRuleContext

	// GetParser returns the parser.
	GetParser() antlr.Parser

	// IsParseContext differentiates from other interfaces.
	IsParseContext()
}

IParseContext is an interface to support dynamic dispatch.

type MultiplicationOrDivisionContext

type MultiplicationOrDivisionContext struct {
	*ExpressionContext
	// contains filtered or unexported fields
}

func NewMultiplicationOrDivisionContext

func NewMultiplicationOrDivisionContext(parser antlr.Parser, ctx antlr.ParserRuleContext) *MultiplicationOrDivisionContext

func (*MultiplicationOrDivisionContext) Accept

func (s *MultiplicationOrDivisionContext) Accept(visitor antlr.ParseTreeVisitor) interface{}

func (*MultiplicationOrDivisionContext) AllExpression

func (*MultiplicationOrDivisionContext) DIVIDE

func (*MultiplicationOrDivisionContext) EnterRule

func (*MultiplicationOrDivisionContext) ExitRule

func (*MultiplicationOrDivisionContext) Expression

func (*MultiplicationOrDivisionContext) GetOp

func (*MultiplicationOrDivisionContext) GetRuleContext

func (*MultiplicationOrDivisionContext) SetOp

func (*MultiplicationOrDivisionContext) TIMES

type NegationContext

type NegationContext struct {
	*ExpressionContext
}

func NewNegationContext

func NewNegationContext(parser antlr.Parser, ctx antlr.ParserRuleContext) *NegationContext

func (*NegationContext) Accept

func (s *NegationContext) Accept(visitor antlr.ParseTreeVisitor) interface{}

func (*NegationContext) EnterRule

func (s *NegationContext) EnterRule(listener antlr.ParseTreeListener)

func (*NegationContext) ExitRule

func (s *NegationContext) ExitRule(listener antlr.ParseTreeListener)

func (*NegationContext) Expression

func (s *NegationContext) Expression() IExpressionContext

func (*NegationContext) GetRuleContext

func (s *NegationContext) GetRuleContext() antlr.RuleContext

func (*NegationContext) MINUS

func (s *NegationContext) MINUS() antlr.TerminalNode

type NullContext added in v0.9.2

type NullContext struct {
	*ExpressionContext
}

func NewNullContext added in v0.9.2

func NewNullContext(parser antlr.Parser, ctx antlr.ParserRuleContext) *NullContext

func (*NullContext) Accept added in v0.9.2

func (s *NullContext) Accept(visitor antlr.ParseTreeVisitor) interface{}

func (*NullContext) EnterRule added in v0.9.2

func (s *NullContext) EnterRule(listener antlr.ParseTreeListener)

func (*NullContext) ExitRule added in v0.9.2

func (s *NullContext) ExitRule(listener antlr.ParseTreeListener)

func (*NullContext) GetRuleContext added in v0.9.2

func (s *NullContext) GetRuleContext() antlr.RuleContext

func (*NullContext) NULL added in v0.9.2

func (s *NullContext) NULL() antlr.TerminalNode

type NumberLiteralContext added in v0.9.4

type NumberLiteralContext struct {
	*ExpressionContext
}

func NewNumberLiteralContext added in v0.9.4

func NewNumberLiteralContext(parser antlr.Parser, ctx antlr.ParserRuleContext) *NumberLiteralContext

func (*NumberLiteralContext) Accept added in v0.9.4

func (s *NumberLiteralContext) Accept(visitor antlr.ParseTreeVisitor) interface{}

func (*NumberLiteralContext) EnterRule added in v0.9.4

func (s *NumberLiteralContext) EnterRule(listener antlr.ParseTreeListener)

func (*NumberLiteralContext) ExitRule added in v0.9.4

func (s *NumberLiteralContext) ExitRule(listener antlr.ParseTreeListener)

func (*NumberLiteralContext) GetRuleContext added in v0.9.4

func (s *NumberLiteralContext) GetRuleContext() antlr.RuleContext

func (*NumberLiteralContext) NUMBER added in v0.9.4

type ParametersContext

type ParametersContext struct {
	*antlr.BaseParserRuleContext
	// contains filtered or unexported fields
}

func NewEmptyParametersContext

func NewEmptyParametersContext() *ParametersContext

func NewParametersContext

func NewParametersContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *ParametersContext

func (*ParametersContext) CopyFrom

func (s *ParametersContext) CopyFrom(ctx *ParametersContext)

func (*ParametersContext) GetParser

func (s *ParametersContext) GetParser() antlr.Parser

func (*ParametersContext) GetRuleContext

func (s *ParametersContext) GetRuleContext() antlr.RuleContext

func (*ParametersContext) IsParametersContext

func (*ParametersContext) IsParametersContext()

func (*ParametersContext) ToStringTree

func (s *ParametersContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string

type ParenthesesContext

type ParenthesesContext struct {
	*AtomContext
}

func NewParenthesesContext

func NewParenthesesContext(parser antlr.Parser, ctx antlr.ParserRuleContext) *ParenthesesContext

func (*ParenthesesContext) Accept

func (s *ParenthesesContext) Accept(visitor antlr.ParseTreeVisitor) interface{}

func (*ParenthesesContext) EnterRule

func (s *ParenthesesContext) EnterRule(listener antlr.ParseTreeListener)

func (*ParenthesesContext) ExitRule

func (s *ParenthesesContext) ExitRule(listener antlr.ParseTreeListener)

func (*ParenthesesContext) Expression

func (s *ParenthesesContext) Expression() IExpressionContext

func (*ParenthesesContext) GetRuleContext

func (s *ParenthesesContext) GetRuleContext() antlr.RuleContext

func (*ParenthesesContext) LPAREN

func (*ParenthesesContext) RPAREN

type ParseContext

type ParseContext struct {
	*antlr.BaseParserRuleContext
	// contains filtered or unexported fields
}

func NewEmptyParseContext

func NewEmptyParseContext() *ParseContext

func NewParseContext

func NewParseContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *ParseContext

func (*ParseContext) Accept

func (s *ParseContext) Accept(visitor antlr.ParseTreeVisitor) interface{}

func (*ParseContext) EOF

func (s *ParseContext) EOF() antlr.TerminalNode

func (*ParseContext) EnterRule

func (s *ParseContext) EnterRule(listener antlr.ParseTreeListener)

func (*ParseContext) ExitRule

func (s *ParseContext) ExitRule(listener antlr.ParseTreeListener)

func (*ParseContext) Expression

func (s *ParseContext) Expression() IExpressionContext

func (*ParseContext) GetParser

func (s *ParseContext) GetParser() antlr.Parser

func (*ParseContext) GetRuleContext

func (s *ParseContext) GetRuleContext() antlr.RuleContext

func (*ParseContext) IsParseContext

func (*ParseContext) IsParseContext()

func (*ParseContext) ToStringTree

func (s *ParseContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string

type TextLiteralContext added in v0.9.4

type TextLiteralContext struct {
	*ExpressionContext
}

func NewTextLiteralContext added in v0.9.4

func NewTextLiteralContext(parser antlr.Parser, ctx antlr.ParserRuleContext) *TextLiteralContext

func (*TextLiteralContext) Accept added in v0.9.4

func (s *TextLiteralContext) Accept(visitor antlr.ParseTreeVisitor) interface{}

func (*TextLiteralContext) EnterRule added in v0.9.4

func (s *TextLiteralContext) EnterRule(listener antlr.ParseTreeListener)

func (*TextLiteralContext) ExitRule added in v0.9.4

func (s *TextLiteralContext) ExitRule(listener antlr.ParseTreeListener)

func (*TextLiteralContext) GetRuleContext added in v0.9.4

func (s *TextLiteralContext) GetRuleContext() antlr.RuleContext

func (*TextLiteralContext) TEXT added in v0.9.4

type TrueContext

type TrueContext struct {
	*ExpressionContext
}

func NewTrueContext

func NewTrueContext(parser antlr.Parser, ctx antlr.ParserRuleContext) *TrueContext

func (*TrueContext) Accept

func (s *TrueContext) Accept(visitor antlr.ParseTreeVisitor) interface{}

func (*TrueContext) EnterRule

func (s *TrueContext) EnterRule(listener antlr.ParseTreeListener)

func (*TrueContext) ExitRule

func (s *TrueContext) ExitRule(listener antlr.ParseTreeListener)

func (*TrueContext) GetRuleContext

func (s *TrueContext) GetRuleContext() antlr.RuleContext

func (*TrueContext) TRUE

func (s *TrueContext) TRUE() antlr.TerminalNode

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL