token

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Oct 16, 2021 License: MIT Imports: 0 Imported by: 0

Documentation

Overview

Package token defines constants representing the lexical tokens.

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.

const (
	ILLEGAL Token = iota
	EOF

	STRING // "text"
	INT    // 123

	PERIOD // .
	LBRACK // [
	RBRACK // ]
)

func (Token) String

func (t Token) String() string

String returns t as string.

Jump to

Keyboard shortcuts

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