token

package
v0.0.0-...-568b5cd Latest Latest
Warning

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

Go to latest
Published: Jun 16, 2023 License: BSD-3-Clause Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Token

type Token uint
const (
	ILLEGAL Token = iota
	EOF
	WS

	// identifiers, e.g. variable name
	IDENT

	INT
	FLOAT
	STRING

	// == , =
	EQL
	// !=
	NEQ
	// <
	LT
	// <= , =<
	LE
	// >
	GT
	// >= , =>
	GE

	// contains
	CONTAINS
	// beginswith
	BEGINSWITH
	// endswith
	ENDSWITH
	// like
	LIKE

	// and
	AND
	// or
	OR
	// all
	ALL
	// any
	ANY

	// true , TRUE
	TRUE
	// false , FALSE
	FALSE
	// YES
	YES
	// NO
	NO

	// NULL
	NULL
	// nil
	NIL

	// (
	LPAREN
	// [
	LBRACK
	// {
	LBRACE

	// )
	RPAREN
	// ]
	RBRACK
	// }
	RBRACE

	// ,
	COMMA
)

func (Token) Literal

func (t Token) Literal() string

some token has one and only one valid (or preferred) representation. This facilitates formatting token.

Jump to

Keyboard shortcuts

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