lexer

package
v0.0.0-...-b44ac9e Latest Latest
Warning

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

Go to latest
Published: Feb 22, 2024 License: MIT, MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const EOF = -1

Variables

This section is empty.

Functions

This section is empty.

Types

type Item

type Item struct {
	Type  ItemType
	Pos   Pos
	Value string
}

type ItemType

type ItemType int
const (
	ItemError ItemType = iota
	ItemEOF

	ItemLeftParen
	ItemRightParen
	ItemLeftVect
	ItemRightVect

	ItemIdent
	ItemString
	ItemChar
	ItemFloat
	ItemInt
	ItemComplex

	ItemQuote
	ItemQuasiQuote
	ItemUnquote
	ItemUnquoteSplice
)

type Lexer

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

func Lex

func Lex(name, input string) *Lexer

func (*Lexer) NextItem

func (l *Lexer) NextItem() Item

type Pos

type Pos int

Jump to

Keyboard shortcuts

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