parser

package
v0.0.0-...-30bd09b Latest Latest
Warning

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

Go to latest
Published: May 1, 2016 License: MIT Imports: 4 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ID

type ID string

ID is a unique identifier for a component in a flow program

type Program

type Program struct {
	Imports    map[string]string
	Components map[ID]string
	Flow       map[ID]ID
	Entry      ID
}

Program is essentially an AST for flow programs Use Load to verify that a program type checks.

func ParseFile

func ParseFile(filename string) (Program, error)

ParseFile reads a flow Program from the specified file

func ParseReader

func ParseReader(r io.Reader) (Program, error)

ParseReader parses a flow program from the given io.Reader

Jump to

Keyboard shortcuts

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