lexer

package
v0.0.0-...-2f195f3 Latest Latest
Warning

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

Go to latest
Published: Nov 6, 2015 License: Apache-2.0 Imports: 4 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Tokenizer

func Tokenizer(expr string) (tokens *list.List, err error)

Tokenizer func

Types

type Token

type Token struct {
	Type TokenType
	Raw  string
	Val  interface{}
}

Token struct

func (*Token) String

func (t *Token) String() string

type TokenType

type TokenType int

TokenType enum

const (
	Symbol TokenType = iota
	Number
	Bool
	List
	Proc
	Lambda
	LeftParenthes
	RightParenthes
)

Token type

func (TokenType) String

func (t TokenType) String() string

Jump to

Keyboard shortcuts

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