antlr

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Nov 4, 2019 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GroolParser

type GroolParser struct {
}

type GroolParserListener

type GroolParserListener struct {
	parser.BasegroolListener
	ParseErrors []error

	//RuleEntries map[string]*model.RuleEntry
	KnowledgeBase *model.KnowledgeBase
	Stack         *stack.Stack
}

func NewGroolParserListener

func NewGroolParserListener(kbase *model.KnowledgeBase) *GroolParserListener

func (*GroolParserListener) AddError

func (s *GroolParserListener) AddError(e error)

func (*GroolParserListener) EnterAssignExpression

func (s *GroolParserListener) EnterAssignExpression(ctx *parser.AssignExpressionContext)

EnterAssignExpression is called when production assignExpression is entered.

func (*GroolParserListener) EnterAssignExpressions

func (s *GroolParserListener) EnterAssignExpressions(ctx *parser.AssignExpressionsContext)

EnterAssignExpressions is called when production assignExpressions is entered.

func (*GroolParserListener) EnterAssignment

func (s *GroolParserListener) EnterAssignment(ctx *parser.AssignmentContext)

EnterAssignment is called when production assignment is entered.

func (*GroolParserListener) EnterBooleanLiteral

func (s *GroolParserListener) EnterBooleanLiteral(ctx *parser.BooleanLiteralContext)

EnterBooleanLiteral is called when production booleanLiteral is entered.

func (*GroolParserListener) EnterComparisonOperator

func (s *GroolParserListener) EnterComparisonOperator(ctx *parser.ComparisonOperatorContext)

EnterComparisonOperator is called when production comparisonOperator is entered.

func (*GroolParserListener) EnterConstant

func (s *GroolParserListener) EnterConstant(ctx *parser.ConstantContext)

EnterConstant is called when production constant is entered.

func (*GroolParserListener) EnterDecimalLiteral

func (s *GroolParserListener) EnterDecimalLiteral(ctx *parser.DecimalLiteralContext)

EnterDecimalLiteral is called when production decimalLiteral is entered.

func (*GroolParserListener) EnterEveryRule

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

EnterEveryRule is called when any engine is entered.

func (*GroolParserListener) EnterExpression

func (s *GroolParserListener) EnterExpression(ctx *parser.ExpressionContext)

EnterExpression is called when production expression is entered.

func (*GroolParserListener) EnterExpressionAtom

func (s *GroolParserListener) EnterExpressionAtom(ctx *parser.ExpressionAtomContext)

EnterExpressionAtom is called when production expressionAtom is entered.

func (*GroolParserListener) EnterFunctionArgs

func (s *GroolParserListener) EnterFunctionArgs(ctx *parser.FunctionArgsContext)

EnterFunctionArgs is called when production functionArgs is entered.

func (*GroolParserListener) EnterFunctionCall

func (s *GroolParserListener) EnterFunctionCall(ctx *parser.FunctionCallContext)

EnterFunctionCall is called when production functionCall is entered.

func (*GroolParserListener) EnterLogicalOperator

func (s *GroolParserListener) EnterLogicalOperator(ctx *parser.LogicalOperatorContext)

EnterLogicalOperator is called when production logicalOperator is entered.

func (*GroolParserListener) EnterMathOperator

func (s *GroolParserListener) EnterMathOperator(ctx *parser.MathOperatorContext)

EnterMathOperator is called when production mathOperator is entered.

func (*GroolParserListener) EnterMethodCall

func (s *GroolParserListener) EnterMethodCall(ctx *parser.MethodCallContext)

EnterMethodCall is called when production methodCall is entered.

func (*GroolParserListener) EnterPredicate

func (s *GroolParserListener) EnterPredicate(ctx *parser.PredicateContext)

EnterPredicate is called when production predicate is entered.

func (*GroolParserListener) EnterRealLiteral

func (s *GroolParserListener) EnterRealLiteral(ctx *parser.RealLiteralContext)

EnterRealLiteral is called when production realLiteral is entered.

func (*GroolParserListener) EnterRoot

func (s *GroolParserListener) EnterRoot(ctx *parser.RootContext)

EnterRoot is called when production root is entered.

func (*GroolParserListener) EnterRuleDescription

func (s *GroolParserListener) EnterRuleDescription(ctx *parser.RuleDescriptionContext)

EnterRuleDescription is called when production ruleDescription is entered.

func (*GroolParserListener) EnterRuleEntry

func (s *GroolParserListener) EnterRuleEntry(ctx *parser.RuleEntryContext)

EnterRuleEntry is called when production ruleEntry is entered.

func (*GroolParserListener) EnterRuleName

func (s *GroolParserListener) EnterRuleName(ctx *parser.RuleNameContext)

EnterRuleName is called when production ruleName is entered.

func (*GroolParserListener) EnterSalience

func (s *GroolParserListener) EnterSalience(ctx *parser.SalienceContext)

EnterSalience is called when production salience is entered.

func (*GroolParserListener) EnterStringLiteral

func (s *GroolParserListener) EnterStringLiteral(ctx *parser.StringLiteralContext)

EnterStringLiteral is called when production stringLiteral is entered.

func (*GroolParserListener) EnterThenScope

func (s *GroolParserListener) EnterThenScope(ctx *parser.ThenScopeContext)

EnterThenScope is called when production thenScope is entered.

func (*GroolParserListener) EnterVariable

func (s *GroolParserListener) EnterVariable(ctx *parser.VariableContext)

EnterVariable is called when production variable is entered.

func (*GroolParserListener) EnterWhenScope

func (s *GroolParserListener) EnterWhenScope(ctx *parser.WhenScopeContext)

EnterWhenScope is called when production whenScope is entered.

func (*GroolParserListener) ExitAssignExpression

func (s *GroolParserListener) ExitAssignExpression(ctx *parser.AssignExpressionContext)

ExitAssignExpression is called when production assignExpression is exited.

func (*GroolParserListener) ExitAssignExpressions

func (s *GroolParserListener) ExitAssignExpressions(ctx *parser.AssignExpressionsContext)

ExitAssignExpressions is called when production assignExpressions is exited.

func (*GroolParserListener) ExitAssignment

func (s *GroolParserListener) ExitAssignment(ctx *parser.AssignmentContext)

ExitAssignment is called when production assignment is exited.

func (*GroolParserListener) ExitBooleanLiteral

func (s *GroolParserListener) ExitBooleanLiteral(ctx *parser.BooleanLiteralContext)

ExitBooleanLiteral is called when production booleanLiteral is exited.

func (*GroolParserListener) ExitComparisonOperator

func (s *GroolParserListener) ExitComparisonOperator(ctx *parser.ComparisonOperatorContext)

ExitComparisonOperator is called when production comparisonOperator is exited.

func (*GroolParserListener) ExitConstant

func (s *GroolParserListener) ExitConstant(ctx *parser.ConstantContext)

ExitConstant is called when production constant is exited.

func (*GroolParserListener) ExitDecimalLiteral

func (s *GroolParserListener) ExitDecimalLiteral(ctx *parser.DecimalLiteralContext)

ExitDecimalLiteral is called when production decimalLiteral is exited.

func (*GroolParserListener) ExitEveryRule

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

ExitEveryRule is called when any engine is exited.

func (*GroolParserListener) ExitExpression

func (s *GroolParserListener) ExitExpression(ctx *parser.ExpressionContext)

ExitExpression is called when production expression is exited.

func (*GroolParserListener) ExitExpressionAtom

func (s *GroolParserListener) ExitExpressionAtom(ctx *parser.ExpressionAtomContext)

ExitExpressionAtom is called when production expressionAtom is exited.

func (*GroolParserListener) ExitFunctionArgs

func (s *GroolParserListener) ExitFunctionArgs(ctx *parser.FunctionArgsContext)

ExitFunctionArgs is called when production functionArgs is exited.

func (*GroolParserListener) ExitFunctionCall

func (s *GroolParserListener) ExitFunctionCall(ctx *parser.FunctionCallContext)

ExitFunctionCall is called when production functionCall is exited.

func (*GroolParserListener) ExitLogicalOperator

func (s *GroolParserListener) ExitLogicalOperator(ctx *parser.LogicalOperatorContext)

ExitLogicalOperator is called when production logicalOperator is exited.

func (*GroolParserListener) ExitMathOperator

func (s *GroolParserListener) ExitMathOperator(ctx *parser.MathOperatorContext)

ExitMathOperator is called when production mathOperator is exited.

func (*GroolParserListener) ExitMethodCall

func (s *GroolParserListener) ExitMethodCall(ctx *parser.MethodCallContext)

ExitMethodCall is called when production methodCall is exited.

func (*GroolParserListener) ExitPredicate

func (s *GroolParserListener) ExitPredicate(ctx *parser.PredicateContext)

ExitPredicate is called when production predicate is exited.

func (*GroolParserListener) ExitRealLiteral

func (s *GroolParserListener) ExitRealLiteral(ctx *parser.RealLiteralContext)

ExitRealLiteral is called when production realLiteral is exited.

func (*GroolParserListener) ExitRoot

func (s *GroolParserListener) ExitRoot(ctx *parser.RootContext)

ExitRoot is called when production root is exited.

func (*GroolParserListener) ExitRuleDescription

func (s *GroolParserListener) ExitRuleDescription(ctx *parser.RuleDescriptionContext)

ExitRuleDescription is called when production ruleDescription is exited.

func (*GroolParserListener) ExitRuleEntry

func (s *GroolParserListener) ExitRuleEntry(ctx *parser.RuleEntryContext)

ExitRuleEntry is called when production ruleEntry is exited.

func (*GroolParserListener) ExitRuleName

func (s *GroolParserListener) ExitRuleName(ctx *parser.RuleNameContext)

ExitRuleName is called when production ruleName is exited.

func (*GroolParserListener) ExitSalience

func (s *GroolParserListener) ExitSalience(ctx *parser.SalienceContext)

ExitSalience is called when production salience is exited.

func (*GroolParserListener) ExitStringLiteral

func (s *GroolParserListener) ExitStringLiteral(ctx *parser.StringLiteralContext)

ExitStringLiteral is called when production stringLiteral is exited.

func (*GroolParserListener) ExitThenScope

func (s *GroolParserListener) ExitThenScope(ctx *parser.ThenScopeContext)

ExitThenScope is called when production thenScope is exited.

func (*GroolParserListener) ExitVariable

func (s *GroolParserListener) ExitVariable(ctx *parser.VariableContext)

ExitVariable is called when production variable is exited.

func (*GroolParserListener) ExitWhenScope

func (s *GroolParserListener) ExitWhenScope(ctx *parser.WhenScopeContext)

ExitWhenScope is called when production whenScope is exited.

func (*GroolParserListener) VisitErrorNode

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

VisitErrorNode is called when an error node is visited.

func (*GroolParserListener) VisitTerminal

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

VisitTerminal is called when a terminal node is visited.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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