Documentation
¶
Overview ¶
Package parser implements a regex parser.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Parse ¶
func Parse(source string) (ast.Node, diagnostic.DiagnosticList)
Parse the given source code and return an Abstract Syntax Tree. Main entry point to the parser.
Types ¶
type Parser ¶
type Parser struct {
// contains filtered or unexported fields
}
Holds the current state of the parsing process.
func (*Parser) Parse ¶
func (p *Parser) Parse() (ast.Node, diagnostic.DiagnosticList)
Start the parsing process from the top.
Click to show internal directories.
Click to hide internal directories.