parse

package
v1.0.3 Latest Latest
Warning

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

Go to latest
Published: Dec 11, 2023 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Parse

func Parse(input []byte) (*file.File, error)

Parse parses the given input file and returns the generated file.File.

If it encounters any syntax errors, it attempts to recover from them and resume parsing. Therefore, Parse may return both a non-nil file and an error, indicating that the passed input is erroneous, but could be recovered from.

If Parse returns an error, it will always be of type corgierr.List.

Callers are expected to set the Name, Module, PathInModule, and AbsolutePath of the returned file themselves.

By default, Name is set to "parse", so if you print any errors without updating Name, this will be used as filename in the error message.

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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