sqlast

package module
v0.0.0-...-bfa1a25 Latest Latest
Warning

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

Go to latest
Published: Sep 19, 2022 License: Apache-2.0 Imports: 2 Imported by: 0

README

sqlast

Documentation

Index

Constants

View Source
const (
	ILLEGAL = "ILLEGAL"
	EOF     = "EOF"

	IDENT = "IDENT"
	INT   = "INT"

	EQUALS   = "="
	PLUS     = "+"
	MINUS    = "-"
	ASTERISK = "*"
	SLASH    = "/"
	PERCENT  = "%"
	BANG     = "!"

	PLACEHOLDER_DOLLER = "$"
	PLACEHOLDER_AT     = "@"

	LT = "<"
	GT = ">"

	COMMA     = ","
	SEMICOLON = ";"

	LPAREN = "("
	RPAREN = ")"
	LBRACE = "{"
	RBRACE = "}"

	SELECT  = "SELECT"
	FROM    = "FROM"
	INNER   = "INNER"
	OUTER   = "OUTER"
	CROSS   = "CROSS"
	JOIN    = "JOIN"
	ON      = "ON"
	WHERE   = "WHERE"
	AND     = "AND"
	OR      = "OR"
	BETWEEN = "BETWEEN"
	IN      = "IN"
	GROUP   = "GROUP"
	BY      = "BY"
	HAVING  = "HAVING"
	ORDER   = "ORDER"
	LIMIT   = "LIMIT"
	WITH    = "WITH"
)

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) NextToken

func (l *Lexer) NextToken() Token

type Token

type Token struct {
	Type    TokenType
	Literal string
}

type TokenType

type TokenType string

func LookupIdent

func LookupIdent(ident string) TokenType

func LookupPlaceHolder

func LookupPlaceHolder(placeholder string) TokenType

Jump to

Keyboard shortcuts

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