lex

package
v0.0.0-...-df06595 Latest Latest
Warning

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

Go to latest
Published: Feb 25, 2024 License: GPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const AND = 57353
View Source
const AS = 57354
View Source
const ASC = 57355
View Source
const BOOL = 57356
View Source
const BY = 57357
View Source
const CAST = 57358
View Source
const DEDUP = 57360
View Source
const DESC = 57359
View Source
const DOUBLE = 57361
View Source
const ERROR = 57345
View Source
const EVAL = 57362
View Source
const EXTRACT = 57372
View Source
const FALSE = 57363
View Source
const FCONST = 57348
View Source
const GREATER_EQUALS = 57351
View Source
const ICONST = 57347
View Source
const IDENT = 57346
View Source
const IMPORT = 57364
View Source
const LESS_EQUALS = 57350
View Source
const LIMIT = 57365
View Source
const LONG = 57366
View Source
const LUA = 57367
View Source
const LUA_FILE = 57368
View Source
const NOT = 57369
View Source
const NOT_EQUALS = 57352
View Source
const OR = 57370
View Source
const ORDER = 57371
View Source
const SCONST = 57349
View Source
const STATS = 57373
View Source
const STRING = 57374
View Source
const TRUE = 57375
View Source
const TYPE = 57376
View Source
const WHERE = 57377

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