Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Parse ¶
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.
Click to show internal directories.
Click to hide internal directories.