internal

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Jul 30, 2023 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const AND = 57350
View Source
const ASC = 57358
View Source
const BY = 57355
View Source
const DESC = 57359
View Source
const DUR = 57357
View Source
const EQ = 57352
View Source
const IDENT = 57347
View Source
const LIMIT = 57356
View Source
const NEQ = 57353
View Source
const NOT = 57349
View Source
const NUMBER = 57346
View Source
const OR = 57351
View Source
const ORDER = 57354
View Source
const STRING = 57348

Variables

This section is empty.

Functions

func Parse

func Parse(query string) (*ast.Query, error)

Types

type Lexer

type Lexer struct {
	scanner.Scanner
	// contains filtered or unexported fields
}

func (*Lexer) Error

func (l *Lexer) Error(err string)

func (*Lexer) Lex

func (l *Lexer) Lex(lval *yySymType) int

func (*Lexer) Match

func (l *Lexer) Match(token rune, lval *yySymType) int

type ParseError

type ParseError struct {
	Message     string
	Explanation string
	Offset      int
	Length      int
	Line        int
	Column      int
}

func (*ParseError) Error

func (err *ParseError) Error() string

Jump to

Keyboard shortcuts

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