nomdl

package
v0.0.0-...-e5fa29d Latest Latest
Warning

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

Go to latest
Published: Aug 27, 2021 License: Apache-2.0 Imports: 8 Imported by: 9

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