token

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Oct 1, 2021 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const DefaultBlockSize = 1024

Variables

This section is empty.

Functions

This section is empty.

Types

type ID

type ID int
const (
	T_SELECT ID = iota + 57346
	T_FROM
	T_WHERE
	T_WITH
	T_COUNT
	T_LIMIT
	T_OFFSET
	T_ORDER_BY
	T_DESC
	T_ASC

	T_LNUMBER
	T_DNUMBER
	T_CONSTANT_STRING
	T_STRING
	T_VARIABLE
	T_COMMENT
	T_DOC_COMMENT
	T_WHITESPACE
	T_OR
	T_XOR
	T_AND
	T_NOT
	T_EQUAL
	T_NOT_EQUAL
	T_SMALLER
	T_GREATER
	T_SMALLER_OR_EQUAL
	T_GREATER_OR_EQUAL
	T_OBJECT_OPERATOR
)

func (ID) String

func (i ID) String() string

type Pool

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

func NewPool

func NewPool(blockSize int) *Pool

func (*Pool) Get

func (p *Pool) Get() *Token

type Token

type Token struct {
	ID           ID
	Value        []byte
	Pos          *position.Pos
	FreeFloating []*Token
}

func (*Token) GetPos

func (t *Token) GetPos() *position.Pos

Jump to

Keyboard shortcuts

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