tokens

package
v0.0.0-...-7b55400 Latest Latest
Warning

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

Go to latest
Published: Dec 20, 2018 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 int
const (
	Period     Token = iota // .
	Const                   // const
	Comma                   // ,
	Semicolon               // ;
	Var                     // var
	Procedure               // procedure
	Assignment              // :=
	Exclam                  // !
	Ques                    // ?
	Call                    // call
	Begin                   // begin
	End                     // end
	If                      // if
	Then                    // then
	While                   // while
	Do                      // do
	Odd                     // odd
	Equal                   // =
	Hash                    // #
	LT                      // <
	LTE                     // <=
	GT                      // >
	GTE                     // >=
	Plus                    // +
	Minus                   // -
	Mul                     // *
	Div                     // /
	OpenParen               // (
	CloseParen              // )
)

func TokenFromString

func TokenFromString(s string) (Token, bool)

func (Token) String

func (i Token) String() string

Jump to

Keyboard shortcuts

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