token

package
v0.0.0-alpha6 Latest Latest
Warning

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

Go to latest
Published: Oct 5, 2022 License: AGPL-3.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

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

	IDENT = "IDENT"

	COMMA = "COMMA"

	LBRACE = "LBRACE"
	RBRACE = "RBRACE"

	LPAREN = "LPAREN"
	RPAREN = "RPAREN"

	ASSIGN = "ASSIGN"
	SIGN   = "SIGN"

	NEWLINE = "NEWLINE"

	ENTITY   = "ENTITY"
	RELATION = "RELATION"
	ACTION   = "ACTION"

	NOT = "NOT"

	AND = "AND"
	OR  = "OR"

	QUOTE  = "QUOTE"
	OPTION = "OPTION"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Token

type Token struct {
	Type    Type
	Literal string
}

Token -

func New

func New(typ Type, ch byte) Token

New -

type Type

type Type string

Type -

func LookupKeywords

func LookupKeywords(ident string) Type

LookupKeywords -

func (Type) String

func (t Type) String() string

String -

Jump to

Keyboard shortcuts

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