token

package
v1.3.2 Latest Latest
Warning

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

Go to latest
Published: Dec 18, 2024 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

	ROOT   // $
	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