token

package
v1.14.0 Latest Latest
Warning

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

Go to latest
Published: Mar 17, 2024 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

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

	STRING = "STRING"
	INT    = "INT"
	DOUBLE = "DOUBLE"
	IDENT  = "IDENT"

	LBRACE   = "{"
	RBRACE   = "}"
	LBRACKET = "["
	RBRACKET = "]"

	SEMI = ";"
	EQ   = "="
	GT   = ">"

	COLON = ":"
	COMMA = ","

	DEF = "=>"

	FN     = "FN"
	FIRST  = "FIRST"
	SECOND = "SECOND"
	THIRD  = "THIRD"
	WITH   = "WITH"
	NULL   = "NULL"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Token

type Token struct {
	TokenType Type
	Literal   string
}

type Type

type Type string

func LookupIdent

func LookupIdent(ident string) Type

Jump to

Keyboard shortcuts

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