lib

package
v0.0.0-...-90111c7 Latest Latest
Warning

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

Go to latest
Published: Apr 4, 2021 License: GPL-3.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const EofRune rune = -1

Variables

View Source
var ErrEndOfInputStream = errors.New("end of input stream")

Functions

This section is empty.

Types

type Evaluator

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

func NewEvaluator

func NewEvaluator(repo *burrowdb.Repository) *Evaluator

func (*Evaluator) Eval

func (e *Evaluator) Eval(ex *Expr) error

type Expr

type Expr struct {
	Command string
	Node    burrowdb.Node
}

func (*Expr) String

func (e *Expr) String() string

type Lexer

type Lexer struct {
	*scanner.Scanner
	// contains filtered or unexported fields
}

func NewLexer

func NewLexer(r io.Reader) *Lexer

New returns new lexer

func (*Lexer) IsNextColon

func (l *Lexer) IsNextColon() bool

func (*Lexer) IsNextLBrace

func (l *Lexer) IsNextLBrace() bool

func (*Lexer) IsNextLParen

func (l *Lexer) IsNextLParen() bool

func (*Lexer) IsNextRBrace

func (l *Lexer) IsNextRBrace() bool

func (*Lexer) IsNextRParen

func (l *Lexer) IsNextRParen() bool

func (*Lexer) NextToken

func (l *Lexer) NextToken() *Token

func (*Lexer) ReadUntilRParen

func (l *Lexer) ReadUntilRParen() []byte

type Parser

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

func NewParser

func NewParser(lex *Lexer) *Parser

func (*Parser) Parse

func (p *Parser) Parse() (*Expr, error)

type Token

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

func (*Token) IsEOF

func (t *Token) IsEOF() bool

func (Token) String

func (t Token) String() string

type TokenType

type TokenType int

func (TokenType) String

func (i TokenType) String() string

Jump to

Keyboard shortcuts

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