lexer

package
v0.0.0-...-e8112b7 Latest Latest
Warning

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

Go to latest
Published: Sep 12, 2019 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Lexer

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

func New

func New(input string) *Lexer

func (*Lexer) Lex

func (l *Lexer) Lex() Token

type Token

type Token struct {
	Kind TokenType
	Str  string
}

type TokenType

type TokenType int
const (
	Eof TokenType = iota
	Slct
	From
	Where
	And
	Orderby
	Inner
	Outer
	Left
	Right
	Join
	On
	Union
	Intersect
	Minus
	Insert
	Into
	Values
	Update
	Set
	Del
	Comma
	Lparen
	Rparen
	Equal
	Less
	Greater
	Star
	Str
	Num
	StringLit
)

Jump to

Keyboard shortcuts

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