Documentation ¶
Index ¶
- func MustParse(ctx context.Context, vrw types.ValueReadWriter, code string) types.Value
- func MustParseType(code string) *types.Type
- func Parse(ctx context.Context, vrw types.ValueReadWriter, code string) (v types.Value, err error)
- func ParseType(code string) (typ *types.Type, err error)
- type Parser
- type ParserOptions
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MustParseType ¶
MustParseType parses a string describing a Noms type and panics if there is an error.
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.
Click to show internal directories.
Click to hide internal directories.