token

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Dec 28, 2020 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

View Source
const (
	LowestLevel = iota
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Token

type Token int
const (
	Illegal Token = iota
	EOF

	Ident
	Bool
	Int
	String
	Var

	Or
	And
	Equal
	NotEqual
	Less
	LessOrEqual
	Greater
	GreaterOrEqual
	In
	NotIn
	Not

	OpenParenthesis
	CloseParenthesis
	OpenSquareBracket
	CloseSquareBracket
	Comma
)

func (Token) Precedence

func (tok Token) Precedence() int

func (Token) String

func (tok Token) String() string

Jump to

Keyboard shortcuts

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