parser

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jan 25, 2016 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Parse

func Parse(name string, r io.Reader) (*types.Codelab, error)

Parse parses source r into a Codelab using a parser registered with the specified name.

func Parsers

func Parsers() []string

Parsers returns a slice of all registered parser names.

func Register

func Register(name string, f ParseFunc)

Register registers a new parser f under specified name. It panics if another parser is already registered under the same name.

Types

type ParseFunc

type ParseFunc func(r io.Reader) (*types.Codelab, error)

ParseFunc parses source r into a Codelab for the specified environment env.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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