parser

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: May 25, 2022 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Overview

Package parser implements a parser for GoAbU ECA rules.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EcaruleLexerParser

type EcaruleLexerParser struct {
	Lexer  *antlr_parser.EcaruleLexer
	Parser *antlr_parser.EcaruleParser
	// contains filtered or unexported fields
}

func NewEcaruleLexerParser

func NewEcaruleLexerParser() *EcaruleLexerParser

func (*EcaruleLexerParser) Errors

func (lp *EcaruleLexerParser) Errors() []error

func (*EcaruleLexerParser) Reset

func (lp *EcaruleLexerParser) Reset(input string)

type EcaruleParserListener

type EcaruleParserListener struct {
	*antlr.GruleV3ParserListener
	Rule *ecarule.Rule
	// contains filtered or unexported fields
}

func NewEcaruleParserListener

func NewEcaruleParserListener(types map[string]string, workingMemory *ast.WorkingMemory) *EcaruleParserListener

func (*EcaruleParserListener) EnterActions

func (l *EcaruleParserListener) EnterActions(ctx *antlr_parser.ActionsContext)

EnterActions is called when production actions is entered.

func (*EcaruleParserListener) EnterAssignment

func (l *EcaruleParserListener) EnterAssignment(ctx *grulev3.AssignmentContext)

func (*EcaruleParserListener) EnterEvents

func (l *EcaruleParserListener) EnterEvents(ctx *antlr_parser.EventsContext)

EnterEvents is called when production events is entered.

func (*EcaruleParserListener) EnterExpression

func (l *EcaruleParserListener) EnterExpression(ctx *grulev3.ExpressionContext)

func (*EcaruleParserListener) EnterMaybeActions

func (l *EcaruleParserListener) EnterMaybeActions(ctx *antlr_parser.MaybeActionsContext)

EnterMaybeActions is called when production maybeActions is entered.

func (*EcaruleParserListener) EnterPrule

func (l *EcaruleParserListener) EnterPrule(ctx *antlr_parser.PruleContext)

EnterPrule is called when production prule is entered.

func (*EcaruleParserListener) EnterTailActions

func (l *EcaruleParserListener) EnterTailActions(ctx *antlr_parser.TailActionsContext)

EnterTailActions is called when production tailActions is entered.

func (*EcaruleParserListener) EnterTask

func (l *EcaruleParserListener) EnterTask(ctx *antlr_parser.TaskContext)

EnterTask is called when production task is entered.

func (*EcaruleParserListener) Errors

func (l *EcaruleParserListener) Errors() []error

func (*EcaruleParserListener) ExitActions

func (l *EcaruleParserListener) ExitActions(ctx *antlr_parser.ActionsContext)

ExitActions is called when production actions is exited.

func (*EcaruleParserListener) ExitEvents

func (l *EcaruleParserListener) ExitEvents(ctx *antlr_parser.EventsContext)

ExitEvents is called when production events is exited.

func (*EcaruleParserListener) ExitMaybeActions

func (l *EcaruleParserListener) ExitMaybeActions(ctx *antlr_parser.MaybeActionsContext)

ExitMaybeActions is called when production maybeActions is exited.

func (*EcaruleParserListener) ExitPrule

func (l *EcaruleParserListener) ExitPrule(ctx *antlr_parser.PruleContext)

ExitPrule is called when production prule is exited.

func (*EcaruleParserListener) ExitTailActions

func (l *EcaruleParserListener) ExitTailActions(ctx *antlr_parser.TailActionsContext)

ExitTailActions is called when production tailActions is exited.

func (*EcaruleParserListener) ExitTask

ExitTask is called when production task is exited.

func (*EcaruleParserListener) ExitVariable

func (l *EcaruleParserListener) ExitVariable(ctx *grulev3.VariableContext)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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