lexer

package
v0.0.0-...-635c4a0 Latest Latest
Warning

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

Go to latest
Published: May 9, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ROOT       = iota
	READSTRING = iota
	READNUMBER = iota
	READSTMT   = iota
)
View Source
const STMT_CHARS = `abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ+-_/?`

Variables

This section is empty.

Functions

This section is empty.

Types

type Lexer

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

func (*Lexer) Reset

func (l *Lexer) Reset()

func (*Lexer) Tokens

func (l *Lexer) Tokens() token.List

func (*Lexer) Write

func (l *Lexer) Write(bytes []byte) (int, error)

func (*Lexer) WriteByte

func (l *Lexer) WriteByte(b byte) error

func (*Lexer) WriteRune

func (l *Lexer) WriteRune(r rune)

func (*Lexer) WriteString

func (l *Lexer) WriteString(s string) error

type State

type State int

func (State) String

func (s State) String() string

Jump to

Keyboard shortcuts

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