nomdl

package
v0.0.0-...-d6cb97c Latest Latest
Warning

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

Go to latest
Published: Jul 14, 2018 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MustParse

func MustParse(vrw types.ValueReadWriter, code string) types.Value

MustParse parses a string describing a Noms value and panics if there is an error.

func MustParseType

func MustParseType(code string) *types.Type

MustParseType parses a string describing a Noms type and panics if there is an error.

func Parse

func Parse(vrw types.ValueReadWriter, code string) (v types.Value, err error)

Parse parses a string describing a Noms value.

func ParseType

func ParseType(code string) (typ *types.Type, err error)

ParseType parses a string describing a Noms type.

Types

type Parser

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

Parser provides ways to parse Noms types.

func New

func New(vrw types.ValueReadWriter, r io.Reader, options ParserOptions) *Parser

New creates a new Parser.

type ParserOptions

type ParserOptions struct {
	// Filename is the name of the file we are currently parsing.
	Filename string
}

ParserOptions allows passing options into New.

Jump to

Keyboard shortcuts

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