lex

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Mar 2, 2025 License: GPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Scanner

type Scanner struct {
	// contains filtered or unexported fields
}

func NewScanner

func NewScanner(r io.Reader) *Scanner

func (*Scanner) Scan

func (s *Scanner) Scan() (tk Token, lt string)

type Token

type Token string
const (
	ILLEGAL      Token = "Illegal"
	EOF          Token = "EOF"
	WS           Token = "WhiteSpace"
	IDENT        Token = "Identity"
	SELECT_START Token = "["
	SELECT_END   Token = "]"
	NAMED        Token = ":"
	NEST         Token = "/"
	FILTER_START Token = "{"
	FILTER_END   Token = "}"
	EQUAL        Token = "="
	QUOTE        Token = "'"
	DQUOTE       Token = "\""
	LITERAL      Token = "literal"
)

func (Token) IsOperator

func (t Token) IsOperator() bool

Jump to

Keyboard shortcuts

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