token

package
v0.5.1 Latest Latest
Warning

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

Go to latest
Published: Jun 25, 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 struct {
	ID      TokenID
	Literal string
	Line    int
	Column  int
}

func (Token) String

func (this Token) String() string

type TokenID

type TokenID int
const (
	ILLEGAL TokenID = iota
	EOF

	LBRACE
	RBRACE
	LBRACKET
	RBRACKET
	EQUAL
	SEMICOLON
	NEWLINE
	COMMA
	PERIOD

	IDENTIFIER
	ENVIRONMENT
	BOOLEAN
	INTEGER
	FLOAT
	STRING
	NULL
	COMMENT
	INCLUDE
)

func (TokenID) String

func (this TokenID) String() string

Jump to

Keyboard shortcuts

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