token

package
v0.0.0-...-3c3c773 Latest Latest
Warning

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

Go to latest
Published: Nov 19, 2023 License: MIT Imports: 1 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 struct {
	Type    Type
	Literal string
	Start   int
	End     int
	Line    int
}

type Type

type Type string
const (
	Illegal      Type = "ILLEGAL"
	EOF          Type = "EOF"
	String       Type = "STRING"
	Number       Type = "NUMBER"
	LeftBrace    Type = "{"
	RightBrace   Type = "}"
	LeftBracket  Type = "["
	RightBracket Type = "]"
	Comma        Type = ","
	Colon        Type = ":"
	True         Type = "TRUE"
	False        Type = "FALSE"
	Null         Type = "NULL"
)

func LookupIdentifier

func LookupIdentifier(identifier string) (Type, error)

Jump to

Keyboard shortcuts

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