gen

package
v0.132.0 Latest Latest
Warning

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

Go to latest
Published: Aug 5, 2021 License: AGPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

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

Excellent1Lexer tokens.

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

Excellent1Parser tokens.

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

Excellent1Parser rules.

Variables

This section is empty.

Functions

This section is empty.

Types

type AdditionOrSubtractionExpressionContext

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

func (*AdditionOrSubtractionExpressionContext) Accept

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

func (*AdditionOrSubtractionExpressionContext) AllExpression

func (*AdditionOrSubtractionExpressionContext) EnterRule

func (*AdditionOrSubtractionExpressionContext) ExitRule

func (*AdditionOrSubtractionExpressionContext) Expression

func (*AdditionOrSubtractionExpressionContext) GetOp

func (*AdditionOrSubtractionExpressionContext) GetRuleContext

func (*AdditionOrSubtractionExpressionContext) MINUS

func (*AdditionOrSubtractionExpressionContext) PLUS

func (*AdditionOrSubtractionExpressionContext) SetOp

type BaseExcellent1Listener

type BaseExcellent1Listener struct{}

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

func (*BaseExcellent1Listener) EnterAdditionOrSubtractionExpression

func (s *BaseExcellent1Listener) EnterAdditionOrSubtractionExpression(ctx *AdditionOrSubtractionExpressionContext)

EnterAdditionOrSubtractionExpression is called when production additionOrSubtractionExpression is entered.

func (*BaseExcellent1Listener) EnterComparisonExpression

func (s *BaseExcellent1Listener) EnterComparisonExpression(ctx *ComparisonExpressionContext)

EnterComparisonExpression is called when production comparisonExpression 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) EnterEqualityExpression

func (s *BaseExcellent1Listener) EnterEqualityExpression(ctx *EqualityExpressionContext)

EnterEqualityExpression is called when production equalityExpression is entered.

func (*BaseExcellent1Listener) EnterEveryRule

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

EnterEveryRule is called when any rule is entered.

func (*BaseExcellent1Listener) EnterExponentExpression

func (s *BaseExcellent1Listener) EnterExponentExpression(ctx *ExponentExpressionContext)

EnterExponentExpression is called when production exponentExpression 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) EnterMultiplicationOrDivisionExpression

func (s *BaseExcellent1Listener) EnterMultiplicationOrDivisionExpression(ctx *MultiplicationOrDivisionExpressionContext)

EnterMultiplicationOrDivisionExpression is called when production multiplicationOrDivisionExpression 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) ExitAdditionOrSubtractionExpression

func (s *BaseExcellent1Listener) ExitAdditionOrSubtractionExpression(ctx *AdditionOrSubtractionExpressionContext)

ExitAdditionOrSubtractionExpression is called when production additionOrSubtractionExpression is exited.

func (*BaseExcellent1Listener) ExitComparisonExpression

func (s *BaseExcellent1Listener) ExitComparisonExpression(ctx *ComparisonExpressionContext)

ExitComparisonExpression is called when production comparisonExpression 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) ExitEqualityExpression

func (s *BaseExcellent1Listener) ExitEqualityExpression(ctx *EqualityExpressionContext)

ExitEqualityExpression is called when production equalityExpression is exited.

func (*BaseExcellent1Listener) ExitEveryRule

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

ExitEveryRule is called when any rule is exited.

func (*BaseExcellent1Listener) ExitExponentExpression

func (s *BaseExcellent1Listener) ExitExponentExpression(ctx *ExponentExpressionContext)

ExitExponentExpression is called when production exponentExpression 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) ExitMultiplicationOrDivisionExpression

func (s *BaseExcellent1Listener) ExitMultiplicationOrDivisionExpression(ctx *MultiplicationOrDivisionExpressionContext)

ExitMultiplicationOrDivisionExpression is called when production multiplicationOrDivisionExpression 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) VisitAdditionOrSubtractionExpression

func (v *BaseExcellent1Visitor) VisitAdditionOrSubtractionExpression(ctx *AdditionOrSubtractionExpressionContext) interface{}

func (*BaseExcellent1Visitor) VisitComparisonExpression

func (v *BaseExcellent1Visitor) VisitComparisonExpression(ctx *ComparisonExpressionContext) 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) VisitEqualityExpression

func (v *BaseExcellent1Visitor) VisitEqualityExpression(ctx *EqualityExpressionContext) interface{}

func (*BaseExcellent1Visitor) VisitExponentExpression

func (v *BaseExcellent1Visitor) VisitExponentExpression(ctx *ExponentExpressionContext) 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) VisitMultiplicationOrDivisionExpression

func (v *BaseExcellent1Visitor) VisitMultiplicationOrDivisionExpression(ctx *MultiplicationOrDivisionExpressionContext) 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 ComparisonExpressionContext

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

func NewComparisonExpressionContext

func NewComparisonExpressionContext(parser antlr.Parser, ctx antlr.ParserRuleContext) *ComparisonExpressionContext

func (*ComparisonExpressionContext) Accept

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

func (*ComparisonExpressionContext) AllExpression

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

func (*ComparisonExpressionContext) EnterRule

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

func (*ComparisonExpressionContext) ExitRule

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

func (*ComparisonExpressionContext) Expression

func (*ComparisonExpressionContext) GT

func (*ComparisonExpressionContext) GTE

func (*ComparisonExpressionContext) GetOp

func (*ComparisonExpressionContext) GetRuleContext

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

func (*ComparisonExpressionContext) LT

func (*ComparisonExpressionContext) LTE

func (*ComparisonExpressionContext) SetOp

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

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

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 EqualityExpressionContext

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

func NewEqualityExpressionContext

func NewEqualityExpressionContext(parser antlr.Parser, ctx antlr.ParserRuleContext) *EqualityExpressionContext

func (*EqualityExpressionContext) Accept

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

func (*EqualityExpressionContext) AllExpression

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

func (*EqualityExpressionContext) EQ

func (*EqualityExpressionContext) EnterRule

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

func (*EqualityExpressionContext) ExitRule

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

func (*EqualityExpressionContext) Expression

func (*EqualityExpressionContext) GetOp

func (*EqualityExpressionContext) GetRuleContext

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

func (*EqualityExpressionContext) NEQ

func (*EqualityExpressionContext) SetOp

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)

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

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

	// EnterExponentExpression is called when entering the exponentExpression production.
	EnterExponentExpression(c *ExponentExpressionContext)

	// EnterAdditionOrSubtractionExpression is called when entering the additionOrSubtractionExpression production.
	EnterAdditionOrSubtractionExpression(c *AdditionOrSubtractionExpressionContext)

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

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

	// EnterComparisonExpression is called when entering the comparisonExpression production.
	EnterComparisonExpression(c *ComparisonExpressionContext)

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

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

	// EnterEqualityExpression is called when entering the equalityExpression production.
	EnterEqualityExpression(c *EqualityExpressionContext)

	// EnterMultiplicationOrDivisionExpression is called when entering the multiplicationOrDivisionExpression production.
	EnterMultiplicationOrDivisionExpression(c *MultiplicationOrDivisionExpressionContext)

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

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

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

	// ExitExponentExpression is called when exiting the exponentExpression production.
	ExitExponentExpression(c *ExponentExpressionContext)

	// ExitAdditionOrSubtractionExpression is called when exiting the additionOrSubtractionExpression production.
	ExitAdditionOrSubtractionExpression(c *AdditionOrSubtractionExpressionContext)

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

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

	// ExitComparisonExpression is called when exiting the comparisonExpression production.
	ExitComparisonExpression(c *ComparisonExpressionContext)

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

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

	// ExitEqualityExpression is called when exiting the equalityExpression production.
	ExitEqualityExpression(c *EqualityExpressionContext)

	// ExitMultiplicationOrDivisionExpression is called when exiting the multiplicationOrDivisionExpression production.
	ExitMultiplicationOrDivisionExpression(c *MultiplicationOrDivisionExpressionContext)

	// 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) 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#parentheses.
	VisitParentheses(ctx *ParenthesesContext) interface{}

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

	// Visit a parse tree produced by Excellent1Parser#exponentExpression.
	VisitExponentExpression(ctx *ExponentExpressionContext) interface{}

	// Visit a parse tree produced by Excellent1Parser#additionOrSubtractionExpression.
	VisitAdditionOrSubtractionExpression(ctx *AdditionOrSubtractionExpressionContext) 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#comparisonExpression.
	VisitComparisonExpression(ctx *ComparisonExpressionContext) interface{}

	// Visit a parse tree produced by Excellent1Parser#concatenation.
	VisitConcatenation(ctx *ConcatenationContext) 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#equalityExpression.
	VisitEqualityExpression(ctx *EqualityExpressionContext) interface{}

	// Visit a parse tree produced by Excellent1Parser#multiplicationOrDivisionExpression.
	VisitMultiplicationOrDivisionExpression(ctx *MultiplicationOrDivisionExpressionContext) 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 ExponentExpressionContext

type ExponentExpressionContext struct {
	*ExpressionContext
}

func NewExponentExpressionContext

func NewExponentExpressionContext(parser antlr.Parser, ctx antlr.ParserRuleContext) *ExponentExpressionContext

func (*ExponentExpressionContext) Accept

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

func (*ExponentExpressionContext) AllExpression

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

func (*ExponentExpressionContext) EXPONENT

func (*ExponentExpressionContext) EnterRule

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

func (*ExponentExpressionContext) ExitRule

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

func (*ExponentExpressionContext) Expression

func (*ExponentExpressionContext) GetRuleContext

func (s *ExponentExpressionContext) 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 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 {
	*ExpressionContext
}

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 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 MultiplicationOrDivisionExpressionContext

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

func (*MultiplicationOrDivisionExpressionContext) Accept

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

func (*MultiplicationOrDivisionExpressionContext) AllExpression

func (*MultiplicationOrDivisionExpressionContext) DIVIDE

func (*MultiplicationOrDivisionExpressionContext) EnterRule

func (*MultiplicationOrDivisionExpressionContext) ExitRule

func (*MultiplicationOrDivisionExpressionContext) Expression

func (*MultiplicationOrDivisionExpressionContext) GetOp

func (*MultiplicationOrDivisionExpressionContext) GetRuleContext

func (*MultiplicationOrDivisionExpressionContext) SetOp

func (*MultiplicationOrDivisionExpressionContext) 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 {
	*ExpressionContext
}

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