token

package
v0.14.0 Latest Latest
Warning

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

Go to latest
Published: May 13, 2023 License: ISC Imports: 0 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

Token represents a token in frundis syntax: basically a text or an escape, as well as some special cases such as illegal tokens or end of file.

const (
	ESCAPE   Token = iota // \X
	IESCAPE               // \*[...]
	AESCAPE               // \$<digit>
	NAESCAPE              // \$[escape]
	NFESCAPE              // \$?[flag]
	TEXT
	MACRO_NAME
	MACRO_END
	ARG_END
	COMMENT
	EXTEND_LINE
	ILLEGAL
	EOF
)

func (Token) String

func (t Token) String() string

Jump to

Keyboard shortcuts

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