package
Version:
v0.0.0-...-e334538
Opens a new window with list of versions in this module.
Published: Oct 11, 2021
License: MIT
Opens a new window with license information.
Imports: 4
Opens a new window with list of imports.
Imported by: 3
Opens a new window with list of known importers.
Documentation
¶
An Error represents a parsing error. Contains a message and two positions for
the start and end of the error.
Error returns a string representation of an Error, to comply with the error
interface.
type Parser struct {
Errors []error
}
A Parser takes a token generator function and parses it into an AST.
New creates a new parser for the given token generator function.
Parse parses an entire program into an `ast.Program`. Also, returns the
first error encountered, if any.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.