lexer

package
v0.0.0-...-a278cc6 Latest Latest
Warning

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

Go to latest
Published: Nov 10, 2020 License: LGPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DEBUG = false

Functions

This section is empty.

Types

type Lexer

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

func New

func New(input string) Lexer

func (*Lexer) Exec

func (l *Lexer) Exec()

Recursive loop that keeps running until we have reached the end of the input

func (*Lexer) Format

func (l *Lexer) Format() string

func (Lexer) Result

func (l Lexer) Result() ([]Result, []error)

type Result

type Result struct {
	Token    token.Token
	Contents string
}

Jump to

Keyboard shortcuts

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