item

package
v1.6.6 Latest Latest
Warning

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

Go to latest
Published: Jun 29, 2024 License: GPL-3.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Item

type Item struct {
	Val string
	Typ Type
	Pos int
}

func (Item) Is

func (i Item) Is(t Type) bool

func (Item) String

func (i Item) String() string

type Type

type Type int
const (
	EOF Type = iota
	Error
	Null

	Ident
	Int
	Float
	String
	RawString

	Assign
	Plus
	Minus
	Slash
	Asterisk
	Modulus
	PlusAssign
	MinusAssign
	AsteriskAssign
	SlashAssign
	ModulusAssign
	BwAndAssign
	BwOrAssign
	BwXorAssign
	LShiftAssign
	RShiftAssign
	Power
	Equals
	NotEquals
	Bang
	LT
	GT
	LTEQ
	GTEQ
	And
	Or
	BwAnd
	BwNot
	BwOr
	BwXor
	LShift
	RShift
	PlusPlus
	MinusMinus

	Dot
	Comma
	Colon
	Semicolon
	NewLine

	LParen
	RParen

	LBrace
	RBrace

	LBracket
	RBracket

	Function
	For
	Continue
	Break
	If
	Else
	True
	False
	Return
	Import
	Tau
)

func Lookup

func Lookup(ident string) Type

func (Type) String

func (t Type) String() string

Jump to

Keyboard shortcuts

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