gen

package
v0.21.2 Latest Latest
Warning

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

Go to latest
Published: Oct 9, 2018 License: AGPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Excellent1LexerCOMMA     = 1
	Excellent1LexerLPAREN    = 2
	Excellent1LexerRPAREN    = 3
	Excellent1LexerLBRACK    = 4
	Excellent1LexerRBRACK    = 5
	Excellent1LexerDOT       = 6
	Excellent1LexerPLUS      = 7
	Excellent1LexerMINUS     = 8
	Excellent1LexerTIMES     = 9
	Excellent1LexerDIVIDE    = 10
	Excellent1LexerEXPONENT  = 11
	Excellent1LexerEQ        = 12
	Excellent1LexerNEQ       = 13
	Excellent1LexerLTE       = 14
	Excellent1LexerLT        = 15
	Excellent1LexerGTE       = 16
	Excellent1LexerGT        = 17
	Excellent1LexerAMPERSAND = 18
	Excellent1LexerDECIMAL   = 19
	Excellent1LexerSTRING    = 20
	Excellent1LexerTRUE      = 21
	Excellent1LexerFALSE     = 22
	Excellent1LexerNAME      = 23
	Excellent1LexerWS        = 24
	Excellent1LexerERROR     = 25
)

Excellent1Lexer tokens.

View Source
const (
	Excellent1ParserEOF       = antlr.TokenEOF
	Excellent1ParserCOMMA     = 1
	Excellent1ParserLPAREN    = 2
	Excellent1ParserRPAREN    = 3
	Excellent1ParserLBRACK    = 4
	Excellent1ParserRBRACK    = 5
	Excellent1ParserDOT       = 6
	Excellent1ParserPLUS      = 7
	Excellent1ParserMINUS     = 8
	Excellent1ParserTIMES     = 9
	Excellent1ParserDIVIDE    = 10
	Excellent1ParserEXPONENT  = 11
	Excellent1ParserEQ        = 12
	Excellent1ParserNEQ       = 13
	Excellent1ParserLTE       = 14
	Excellent1ParserLT        = 15
	Excellent1ParserGTE       = 16
	Excellent1ParserGT        = 17
	Excellent1ParserAMPERSAND = 18
	Excellent1ParserDECIMAL   = 19
	Excellent1ParserSTRING    = 20
	Excellent1ParserTRUE      = 21
	Excellent1ParserFALSE     = 22
	Excellent1ParserNAME      = 23
	Excellent1ParserWS        = 24
	Excellent1ParserERROR     = 25
)

Excellent1Parser tokens.

View Source
const (
	Excellent1ParserRULE_parse      = 0
	Excellent1ParserRULE_atom       = 1
	Excellent1ParserRULE_expression = 2
	Excellent1ParserRULE_fnname     = 3
	Excellent1ParserRULE_parameters = 4
)

Excellent1Parser 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 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 BaseExcellent1Listener

type BaseExcellent1Listener struct{}

BaseExcellent1Listener is a complete listener for a parse tree produced by Excellent1Parser.

func (*BaseExcellent1Listener) EnterAdditionOrSubtraction

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

EnterAdditionOrSubtraction is called when production additionOrSubtraction is entered.

func (*BaseExcellent1Listener) EnterAtomReference

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

EnterAtomReference is called when production atomReference is entered.

func (*BaseExcellent1Listener) EnterComparison

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

EnterComparison is called when production comparison is entered.

func (*BaseExcellent1Listener) EnterConcatenation

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

EnterConcatenation is called when production concatenation is entered.

func (*BaseExcellent1Listener) EnterContextReference

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

EnterContextReference is called when production contextReference is entered.

func (*BaseExcellent1Listener) EnterDecimalLiteral

func (s *BaseExcellent1Listener) EnterDecimalLiteral(ctx *DecimalLiteralContext)

EnterDecimalLiteral is called when production decimalLiteral is entered.

func (*BaseExcellent1Listener) EnterDotLookup

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

EnterDotLookup is called when production dotLookup is entered.

func (*BaseExcellent1Listener) EnterEquality

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

EnterEquality is called when production equality is entered.

func (*BaseExcellent1Listener) EnterEveryRule

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

EnterEveryRule is called when any rule is entered.

func (*BaseExcellent1Listener) EnterExponent

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

EnterExponent is called when production exponent is entered.

func (*BaseExcellent1Listener) EnterFalse

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

EnterFalse is called when production false is entered.

func (*BaseExcellent1Listener) EnterFnname

func (s *BaseExcellent1Listener) EnterFnname(ctx *FnnameContext)

EnterFnname is called when production fnname is entered.

func (*BaseExcellent1Listener) EnterFunctionCall

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

EnterFunctionCall is called when production functionCall is entered.

func (*BaseExcellent1Listener) EnterFunctionParameters

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

EnterFunctionParameters is called when production functionParameters is entered.

func (*BaseExcellent1Listener) EnterMultiplicationOrDivision

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

EnterMultiplicationOrDivision is called when production multiplicationOrDivision is entered.

func (*BaseExcellent1Listener) EnterNegation

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

EnterNegation is called when production negation is entered.

func (*BaseExcellent1Listener) EnterParentheses

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

EnterParentheses is called when production parentheses is entered.

func (*BaseExcellent1Listener) EnterParse

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

EnterParse is called when production parse is entered.

func (*BaseExcellent1Listener) EnterStringLiteral

func (s *BaseExcellent1Listener) EnterStringLiteral(ctx *StringLiteralContext)

EnterStringLiteral is called when production stringLiteral is entered.

func (*BaseExcellent1Listener) EnterTrue

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

EnterTrue is called when production true is entered.

func (*BaseExcellent1Listener) ExitAdditionOrSubtraction

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

ExitAdditionOrSubtraction is called when production additionOrSubtraction is exited.

func (*BaseExcellent1Listener) ExitAtomReference

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

ExitAtomReference is called when production atomReference is exited.

func (*BaseExcellent1Listener) ExitComparison

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

ExitComparison is called when production comparison is exited.

func (*BaseExcellent1Listener) ExitConcatenation

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

ExitConcatenation is called when production concatenation is exited.

func (*BaseExcellent1Listener) ExitContextReference

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

ExitContextReference is called when production contextReference is exited.

func (*BaseExcellent1Listener) ExitDecimalLiteral

func (s *BaseExcellent1Listener) ExitDecimalLiteral(ctx *DecimalLiteralContext)

ExitDecimalLiteral is called when production decimalLiteral is exited.

func (*BaseExcellent1Listener) ExitDotLookup

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

ExitDotLookup is called when production dotLookup is exited.

func (*BaseExcellent1Listener) ExitEquality

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

ExitEquality is called when production equality is exited.

func (*BaseExcellent1Listener) ExitEveryRule

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

ExitEveryRule is called when any rule is exited.

func (*BaseExcellent1Listener) ExitExponent

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

ExitExponent is called when production exponent is exited.

func (*BaseExcellent1Listener) ExitFalse

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

ExitFalse is called when production false is exited.

func (*BaseExcellent1Listener) ExitFnname

func (s *BaseExcellent1Listener) ExitFnname(ctx *FnnameContext)

ExitFnname is called when production fnname is exited.

func (*BaseExcellent1Listener) ExitFunctionCall

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

ExitFunctionCall is called when production functionCall is exited.

func (*BaseExcellent1Listener) ExitFunctionParameters

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

ExitFunctionParameters is called when production functionParameters is exited.

func (*BaseExcellent1Listener) ExitMultiplicationOrDivision

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

ExitMultiplicationOrDivision is called when production multiplicationOrDivision is exited.

func (*BaseExcellent1Listener) ExitNegation

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

ExitNegation is called when production negation is exited.

func (*BaseExcellent1Listener) ExitParentheses

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

ExitParentheses is called when production parentheses is exited.

func (*BaseExcellent1Listener) ExitParse

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

ExitParse is called when production parse is exited.

func (*BaseExcellent1Listener) ExitStringLiteral

func (s *BaseExcellent1Listener) ExitStringLiteral(ctx *StringLiteralContext)

ExitStringLiteral is called when production stringLiteral is exited.

func (*BaseExcellent1Listener) ExitTrue

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

ExitTrue is called when production true is exited.

func (*BaseExcellent1Listener) VisitErrorNode

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

VisitErrorNode is called when an error node is visited.

func (*BaseExcellent1Listener) VisitTerminal

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

VisitTerminal is called when a terminal node is visited.

type BaseExcellent1Visitor

type BaseExcellent1Visitor struct {
	*antlr.BaseParseTreeVisitor
}

func (*BaseExcellent1Visitor) VisitAdditionOrSubtraction

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

func (*BaseExcellent1Visitor) VisitAtomReference

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

func (*BaseExcellent1Visitor) VisitComparison

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

func (*BaseExcellent1Visitor) VisitConcatenation

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

func (*BaseExcellent1Visitor) VisitContextReference

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

func (*BaseExcellent1Visitor) VisitDecimalLiteral

func (v *BaseExcellent1Visitor) VisitDecimalLiteral(ctx *DecimalLiteralContext) interface{}

func (*BaseExcellent1Visitor) VisitDotLookup

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

func (*BaseExcellent1Visitor) VisitEquality

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

func (*BaseExcellent1Visitor) VisitExponent

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

func (*BaseExcellent1Visitor) VisitFalse

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

func (*BaseExcellent1Visitor) VisitFnname

func (v *BaseExcellent1Visitor) VisitFnname(ctx *FnnameContext) interface{}

func (*BaseExcellent1Visitor) VisitFunctionCall

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

func (*BaseExcellent1Visitor) VisitFunctionParameters

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

func (*BaseExcellent1Visitor) VisitMultiplicationOrDivision

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

func (*BaseExcellent1Visitor) VisitNegation

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

func (*BaseExcellent1Visitor) VisitParentheses

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

func (*BaseExcellent1Visitor) VisitParse

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

func (*BaseExcellent1Visitor) VisitStringLiteral

func (v *BaseExcellent1Visitor) VisitStringLiteral(ctx *StringLiteralContext) interface{}

func (*BaseExcellent1Visitor) VisitTrue

func (v *BaseExcellent1Visitor) 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 DecimalLiteralContext

type DecimalLiteralContext struct {
	*AtomContext
}

func NewDecimalLiteralContext

func NewDecimalLiteralContext(parser antlr.Parser, ctx antlr.ParserRuleContext) *DecimalLiteralContext

func (*DecimalLiteralContext) Accept

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

func (*DecimalLiteralContext) DECIMAL

func (*DecimalLiteralContext) EnterRule

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

func (*DecimalLiteralContext) ExitRule

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

func (*DecimalLiteralContext) GetRuleContext

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

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) AllAtom

func (s *DotLookupContext) AllAtom() []IAtomContext

func (*DotLookupContext) Atom

func (s *DotLookupContext) Atom(i int) 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

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 Excellent1Lexer

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

func NewExcellent1Lexer

func NewExcellent1Lexer(input antlr.CharStream) *Excellent1Lexer

type Excellent1Listener

type Excellent1Listener interface {
	antlr.ParseTreeListener

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

	// EnterDecimalLiteral is called when entering the decimalLiteral production.
	EnterDecimalLiteral(c *DecimalLiteralContext)

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

	// EnterStringLiteral is called when entering the stringLiteral production.
	EnterStringLiteral(c *StringLiteralContext)

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

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

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

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

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

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

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

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

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

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

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

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

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

	// EnterFnname is called when entering the fnname production.
	EnterFnname(c *FnnameContext)

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

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

	// ExitDecimalLiteral is called when exiting the decimalLiteral production.
	ExitDecimalLiteral(c *DecimalLiteralContext)

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

	// ExitStringLiteral is called when exiting the stringLiteral production.
	ExitStringLiteral(c *StringLiteralContext)

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

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

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

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

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

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

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

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

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

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

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

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

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

	// ExitFnname is called when exiting the fnname production.
	ExitFnname(c *FnnameContext)

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

Excellent1Listener is a complete listener for a parse tree produced by Excellent1Parser.

type Excellent1Parser

type Excellent1Parser struct {
	*antlr.BaseParser
}

func NewExcellent1Parser

func NewExcellent1Parser(input antlr.TokenStream) *Excellent1Parser

func (*Excellent1Parser) Atom

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

func (*Excellent1Parser) Atom_Sempred

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

func (*Excellent1Parser) Expression

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

func (*Excellent1Parser) Expression_Sempred

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

func (*Excellent1Parser) Fnname

func (p *Excellent1Parser) Fnname() (localctx IFnnameContext)

func (*Excellent1Parser) Parameters

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

func (*Excellent1Parser) Parse

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

func (*Excellent1Parser) Sempred

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

type Excellent1Visitor

type Excellent1Visitor interface {
	antlr.ParseTreeVisitor

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

	// Visit a parse tree produced by Excellent1Parser#decimalLiteral.
	VisitDecimalLiteral(ctx *DecimalLiteralContext) interface{}

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

	// Visit a parse tree produced by Excellent1Parser#stringLiteral.
	VisitStringLiteral(ctx *StringLiteralContext) interface{}

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

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

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

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

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

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

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

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

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

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

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

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

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

	// Visit a parse tree produced by Excellent1Parser#fnname.
	VisitFnname(ctx *FnnameContext) interface{}

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

A complete Visitor for a parse tree produced by Excellent1Parser.

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 {
	*AtomContext
}

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 FnnameContext

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

func NewEmptyFnnameContext

func NewEmptyFnnameContext() *FnnameContext

func NewFnnameContext

func NewFnnameContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *FnnameContext

func (*FnnameContext) Accept

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

func (*FnnameContext) EnterRule

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

func (*FnnameContext) ExitRule

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

func (*FnnameContext) FALSE

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

func (*FnnameContext) GetParser

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

func (*FnnameContext) GetRuleContext

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

func (*FnnameContext) IsFnnameContext

func (*FnnameContext) IsFnnameContext()

func (*FnnameContext) NAME

func (s *FnnameContext) NAME() antlr.TerminalNode

func (*FnnameContext) TRUE

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

func (*FnnameContext) ToStringTree

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

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) EnterRule

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

func (*FunctionCallContext) ExitRule

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

func (*FunctionCallContext) Fnname

func (s *FunctionCallContext) Fnname() IFnnameContext

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 IFnnameContext

type IFnnameContext interface {
	antlr.ParserRuleContext

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

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

IFnnameContext 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 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 {
	*ExpressionContext
}

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 StringLiteralContext

type StringLiteralContext struct {
	*AtomContext
}

func NewStringLiteralContext

func NewStringLiteralContext(parser antlr.Parser, ctx antlr.ParserRuleContext) *StringLiteralContext

func (*StringLiteralContext) Accept

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

func (*StringLiteralContext) EnterRule

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

func (*StringLiteralContext) ExitRule

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

func (*StringLiteralContext) GetRuleContext

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

func (*StringLiteralContext) STRING

type TrueContext

type TrueContext struct {
	*AtomContext
}

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