parse

package
v0.0.0-...-04de46c Latest Latest
Warning

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

Go to latest
Published: Dec 19, 2014 License: BSD-3-Clause Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewContext

func NewContext() value.Context

NewexecContext returns a new context.

Types

type Parser

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

Parser stores the state for the ivy parser.

func NewParser

func NewParser(conf *config.Config, fileName string, scanner *scan.Scanner, context value.Context) *Parser

NewParser returns a new parser that will read from the scanner. The context must have have been created by this package's NewContext function.

func (*Parser) FlushToNewline

func (p *Parser) FlushToNewline()

FlushToNewline any remaining characters on the current input line.

func (*Parser) Line

func (p *Parser) Line() ([]value.Expr, bool)

Line reads a line of input and returns the values it evaluates. A nil returned slice means there were no values. The boolean reports whether the line is valid.

Line

) special command '\n'
def function defintion
expressionList '\n'

func (*Parser) Loc

func (p *Parser) Loc() string

Loc returns the current input location in the form name:line.

Jump to

Keyboard shortcuts

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