parse

package
v0.0.0-...-94861f8 Latest Latest
Warning

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

Go to latest
Published: May 3, 2017 License: BSD-3-Clause, Unlicense Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Parse

func Parse(conf Config, scanner scan.Interface) (prog *ast.Prog, err error)

Parse parses a stream of token and builds an AST tree out of it.

Types

type Config

type Config struct {
	MaxErrors int  // the number of errors before bailing out, if it is 0 or less then it will capture all errors
	Predecl   bool // inject pre-identified values into the parser while parsing
	// contains filtered or unexported fields
}

Config controls the behavior of the parser during parsing.

Jump to

Keyboard shortcuts

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