token

package
v0.9.0 Latest Latest
Warning

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

Go to latest
Published: Jan 25, 2025 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

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

	// literals
	INT   = "INT"
	IDENT = "IDENT"
	DATE  = "DATE"
	UNIT  = "UNIT"

	// Operators
	ASSIGN = "="

	LT = "<"
	GT = ">"
	LE = "<="
	GE = ">="

	EQ     = "=="
	NOT_EQ = "!="

	// Keywords
	AND = "AND"
	OR  = "OR"

	LPAREN = "("
	RPAREN = ")"
)

Variables

View Source
var ExtensionEnum = []string{"dll", "exe", "ps1"}
View Source
var TypeEnum = []string{"pe", "elf", "macho", "txt"}

Functions

This section is empty.

Types

type Token

type Token struct {
	Type    TokenType
	Literal string
}

type TokenType

type TokenType string

func LookupIdent

func LookupIdent(ident string) TokenType

Update LookupIdent to return both token type and value type

type ValueType

type ValueType string

Jump to

Keyboard shortcuts

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