token

package
v0.0.0-...-025acd7 Latest Latest
Warning

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

Go to latest
Published: Jan 18, 2021 License: Unlicense Imports: 0 Imported by: 0

Documentation

Index

Constants

View Source
const (
	NotParsed = -1
	PlusSign  = iota
	MinusSign
	MultiplicationSign
	DivisionSign
	LessThan
	LessThanOrEqual
	EqualTo
	GreaterThanOrEqual
	GreaterThan
	NotEqualTo
	AssignmentSign
	LeftBracket
	RightBracket
	LeftParenthesis
	RightParenthesis
	Comma
	Semicolon
	IntegerLiteral
	DoubleLiteral
	Const
	Void
	Char // the type
	Int
	Double
	CharLiteral
	StringLiteral
	Struct
	If
	Else
	Switch
	Case
	Default
	While
	For
	Do
	Return
	Break
	Continue
	Print
	Scan
	Identifier
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Token

type Token struct {
	Kind   int
	Value  any
	Line   int
	Column int
}

func (*Token) IsAMultiplicativeOperator

func (t *Token) IsAMultiplicativeOperator() bool

func (*Token) IsARelationalOperator

func (t *Token) IsARelationalOperator() bool

func (*Token) IsATypeSpecifier

func (t *Token) IsATypeSpecifier() bool

func (*Token) IsAnAdditiveOperator

func (t *Token) IsAnAdditiveOperator() bool

func (*Token) IsAnUnaryOperator

func (t *Token) IsAnUnaryOperator() bool

Jump to

Keyboard shortcuts

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