parser

package
v2.15.2 Latest Latest
Warning

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

Go to latest
Published: Mar 6, 2024 License: Apache-2.0 Imports: 10 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewExpressionVisitor

func NewExpressionVisitor() gen.CESQLParserVisitor

func Parse

func Parse(input string) (v2.Expression, error)

Types

type CaseChangingStream

type CaseChangingStream struct {
	antlr.CharStream
	// contains filtered or unexported fields
}

CaseChangingStream wraps an existing CharStream, but upper cases, or lower cases the input before it is tokenized.

func NewCaseChangingStream

func NewCaseChangingStream(in antlr.CharStream, upper bool) *CaseChangingStream

NewCaseChangingStream returns a new CaseChangingStream that forces all tokens read from the underlying stream to be either upper case or lower case based on the upper argument.

func (*CaseChangingStream) LA

func (is *CaseChangingStream) LA(offset int) int

LA gets the value of the symbol at offset from the current position from the underlying CharStream and converts it to either upper case or lower case.

type Parser

type Parser struct {
}

func (*Parser) Parse

func (p *Parser) Parse(input string) (v2.Expression, error)

Jump to

Keyboard shortcuts

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