token

package
v0.0.0-...-05ae0ce Latest Latest
Warning

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

Go to latest
Published: Aug 23, 2021 License: MIT Imports: 1 Imported by: 0

Documentation

Overview

Package token defines constants representing the lexical tokens of the Go programming language and basic operations on tokens (printing, predicates).

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Token

type Token int

Token is the set of lexical tokens of the Go programming language.

const (
	ILLEGAL Token = iota
	EOF
	IDENT
	FUNCTION
	AT_KEYWORD
	HASH
	STRING
	DELIM
	NUMBER
	PERCENTAGE
	DIMENSION
	WHITE_SPACE // SPACE

	ADD // +
	SUB // -
	MUL // *
	QUO // /
	REM // %

	LPAREN // (
	LBRACK // [
	LBRACE // {
	COMMA  // ,
	PERIOD // .

	RPAREN    // )
	RBRACK    // ]
	RBRACE    // }
	SEMICOLON // ;
	COLON     // :

	COMMENT
)

The list of tokens.

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