lexer

package
v0.0.0-...-6382efb Latest Latest
Warning

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

Go to latest
Published: Jun 29, 2014 License: 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