lex

package
v0.0.0-...-4d2ef29 Latest Latest
Warning

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

Go to latest
Published: Aug 13, 2020 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const ALL = 57353
View Source
const AND = 57354
View Source
const AS = 57355
View Source
const ASC = 57356
View Source
const AT = 57399
View Source
const BETWEEN = 57357
View Source
const BOOL = 57358
View Source
const BY = 57359
View Source
const CAST = 57360
View Source
const CROSS = 57361
View Source
const DESC = 57362
View Source
const DISTINCT = 57363
View Source
const ERROR = 57345
View Source
const EXCEPT = 57364
View Source
const EXISTS = 57365
View Source
const FALSE = 57366
View Source
const FCONST = 57348
View Source
const FETCH = 57367
View Source
const FIRST = 57368
View Source
const FLOAT = 57369
View Source
const FROM = 57370
View Source
const FULL = 57371
View Source
const GREATER_EQUALS = 57351
View Source
const GROUP = 57372
View Source
const HAVING = 57373
View Source
const ICONST = 57347
View Source
const IDENT = 57346
View Source
const INNER = 57374
View Source
const INT = 57375
View Source
const INTERSECT = 57376
View Source
const IS = 57377
View Source
const JOIN = 57378
View Source
const LEFT = 57401
View Source
const LESS_EQUALS = 57350
View Source
const NATURAL = 57379
View Source
const NEXT = 57380
View Source
const NOT = 57381
View Source
const NOT_EQUALS = 57352
View Source
const NOT_LA = 57398
View Source
const NULL = 57382
View Source
const OFFSET = 57383
View Source
const ON = 57384
View Source
const ONLY = 57385
View Source
const OR = 57386
View Source
const ORDER = 57387
View Source
const OUTER = 57388
View Source
const RIGHT = 57389
View Source
const ROW = 57390
View Source
const ROWS = 57391
View Source
const SCONST = 57349
View Source
const SELECT = 57392
View Source
const STRING = 57393
View Source
const TIME = 57394
View Source
const TRUE = 57395
View Source
const UMINUS = 57400
View Source
const UNION = 57396
View Source
const WHERE = 57397

Variables

This section is empty.

Functions

func GetKeywordID

func GetKeywordID(k string) int32

GetKeywordID returns the lex id of the SQL keyword k or IDENT if k is not a keyword.

func IsDigit

func IsDigit(ch int) bool

IsDigit returns true if the character is between 0 and 9.

func IsHexDigit

func IsHexDigit(ch int) bool

IsHexDigit returns true if the character is a valid hexadecimal digit.

func IsIdentMiddle

func IsIdentMiddle(ch int) bool

IsIdentMiddle returns true if the character is valid inside an identifier.

func IsIdentStart

func IsIdentStart(ch int) bool

IsIdentStart returns true if the character is valid at the start of an identifier.

func NormalizeName

func NormalizeName(n string) string

NormalizeName normalizes to lowercase and Unicode Normalization Form C (NFC).

Types

This section is empty.

Jump to

Keyboard shortcuts

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