fxparser

package
v0.1.47 Latest Latest
Warning

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

Go to latest
Published: Dec 21, 2023 License: GPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PrintParserTree

func PrintParserTree(query string)

func Query

func Query(query string) string

Types

type FxErrorListener

type FxErrorListener struct {
	// contains filtered or unexported fields
}

func NewFxErrorListener

func NewFxErrorListener() *FxErrorListener

func (*FxErrorListener) ReportAmbiguity

func (l *FxErrorListener) ReportAmbiguity(recognizer antlr.Parser, dfa *antlr.DFA, startIndex, stopIndex int, exact bool, ambigAlts *antlr.BitSet, configs antlr.ATNConfigSet)

func (*FxErrorListener) ReportAttemptingFullContext

func (l *FxErrorListener) ReportAttemptingFullContext(recognizer antlr.Parser, dfa *antlr.DFA, startIndex, stopIndex int, conflictingAlts *antlr.BitSet, configs antlr.ATNConfigSet)

func (*FxErrorListener) ReportContextSensitivity

func (l *FxErrorListener) ReportContextSensitivity(recognizer antlr.Parser, dfa *antlr.DFA, startIndex, stopIndex, prediction int, configs antlr.ATNConfigSet)

func (*FxErrorListener) SyntaxError

func (l *FxErrorListener) SyntaxError(recognizer antlr.Recognizer, offendingSymbol interface{}, line, column int, msg string, e antlr.RecognitionException)

type FxQueryListener

type FxQueryListener struct {
	*parser.BaseFOFAListener
	Stack *stack.Stack
}

func NewFxQueryListener

func NewFxQueryListener() *FxQueryListener

func (*FxQueryListener) ExitAndLogicalExp

func (ql *FxQueryListener) ExitAndLogicalExp(c *parser.AndLogicalExpContext)

func (*FxQueryListener) ExitBracketExp

func (ql *FxQueryListener) ExitBracketExp(c *parser.BracketExpContext)

ExitBracketExp is called when production bracketExp is exited.

func (*FxQueryListener) ExitCcompareExp added in v0.1.28

func (ql *FxQueryListener) ExitCcompareExp(c *parser.CcompareExpContext)

ExitCcompareExp is called when production ccompareExp is exited.

func (*FxQueryListener) ExitCompareExp

func (ql *FxQueryListener) ExitCompareExp(c *parser.CompareExpContext)

func (*FxQueryListener) ExitNoCompareExp

func (ql *FxQueryListener) ExitNoCompareExp(c *parser.NoCompareExpContext)

ExitNoCompareExp is called when production scompareExp is exited.

func (*FxQueryListener) ExitOrLogicalExp

func (ql *FxQueryListener) ExitOrLogicalExp(c *parser.OrLogicalExpContext)

func (*FxQueryListener) ExitScompareExp

func (ql *FxQueryListener) ExitScompareExp(c *parser.ScompareExpContext)

ExitScompareExp is called when production scompareExp is exited.

func (*FxQueryListener) ExitSgExp

func (ql *FxQueryListener) ExitSgExp(c *parser.SgExpContext)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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