lexical

package
v1.6.0 Latest Latest
Warning

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

Go to latest
Published: Feb 21, 2019 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const L_AND = "and"
View Source
const L_ASC = "asc"
View Source
const L_BY = "by"
View Source
const L_COUNT = "count"
View Source
const L_DESC = "desc"
View Source
const L_FROM = "from"
View Source
const L_IN = "in"
View Source
const L_LIKE = "like"
View Source
const L_LIMIT = "limit"
View Source
const L_NOT = "not"
View Source
const L_OR = "or"
View Source
const L_ORDER = "order"
View Source
const L_SELECT = "select"
View Source
const L_WHERE = "where"
View Source
const S_COMMA = 2
View Source
const S_EQUAL = 17
View Source
const S_GREATER = 4
View Source
const S_GREATER_OR_EQUAL = 6
View Source
const S_ID = 21
View Source
const S_LITERAL = 19
View Source
const S_LITERAL_2 = 20
View Source
const S_NOT_EQUAL = 18
View Source
const S_NUMERIC = 22
View Source
const S_PARENTH_L = 23
View Source
const S_PARENTH_R = 24
View Source
const S_SEMICOLON = 3
View Source
const S_SMALLER = 5
View Source
const S_SMALLER_EQUAL = 8
View Source
const S_SMALLER_NOT_EQUAL = 9
View Source
const S_SMALLER_OR_EQUAL = 7
View Source
const S_START = 0
View Source
const S_WILD_CARD = 1
View Source
const T_AND = 19
View Source
const T_ASC = 25
View Source
const T_BY = 5
View Source
const T_COMMA = 9
View Source
const T_COUNT = 28
View Source
const T_DESC = 7
View Source
const T_EOF = 0
View Source
const T_EQUAL = 15
View Source
const T_FROM = 2
View Source
const T_FUCK = 66
View Source
const T_GREATER = 11
View Source
const T_GREATER_OR_EQUAL = 13
View Source
const T_ID = 21
View Source
const T_IN = 24
View Source
const T_LIKE = 26
View Source
const T_LIMIT = 6
View Source
const T_LITERAL = 17
View Source
const T_NOT = 27
View Source
const T_NOT_EQUAL = 16
View Source
const T_NUMERIC = 18
View Source
const T_OR = 20
View Source
const T_ORDER = 4
View Source
const T_PARENTH_L = 22
View Source
const T_PARENTH_R = 23
View Source
const T_SELECT = 1
View Source
const T_SEMICOLON = 10
View Source
const T_SMALLER = 12
View Source
const T_SMALLER_OR_EQUAL = 14
View Source
const T_WHERE = 3
View Source
const T_WILD_CARD = 8

Variables

View Source
var CurrentLexeme string

Functions

func New

func New(s string)

func TokenName

func TokenName(token uint8) string

Types

type TokenError

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

func Token

func Token() (uint8, *TokenError)

func (*TokenError) Error

func (error *TokenError) Error() string

Jump to

Keyboard shortcuts

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