Documentation
¶
Overview ¶
Package bootstrap implements the scanner and parser to bootstrap the PEG parser generator.
It parses the PEG grammar into an ast that is then used to generate a parser generator based on this PEG grammar. The generated parser can then parse the grammar again, without the bootstrap package.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Parser ¶
type Parser struct {
// contains filtered or unexported fields
}
Parser holds the state to parse the PEG grammar into an abstract syntax tree (AST).
Directories
¶
Path | Synopsis |
---|---|
cmd
|
|
bootstrap-build
Command bootstrap-build bootstraps the PEG parser generator by parsing the bootstrap grammar and creating a basic parser generator sufficiently complete to parse the pigeon PEG grammar.
|
Command bootstrap-build bootstraps the PEG parser generator by parsing the bootstrap grammar and creating a basic parser generator sufficiently complete to parse the pigeon PEG grammar. |
bootstrap-pigeon
Command bootstrap-pigeon generates a PEG parser from a PEG grammar to bootstrap the pigeon command-line tool, as it is built using a simplified bootstrapping grammar that understands just enough of the pigeon grammar to parse it and build the tool.
|
Command bootstrap-pigeon generates a PEG parser from a PEG grammar to bootstrap the pigeon command-line tool, as it is built using a simplified bootstrapping grammar that understands just enough of the pigeon grammar to parse it and build the tool. |
pegparse
Command pegparse is a helper command-line tool to test the bootstrap parser.
|
Command pegparse is a helper command-line tool to test the bootstrap parser. |
pegscan
Command pegscan is a helper command-line tool to test the bootstrap scanner.
|
Command pegscan is a helper command-line tool to test the bootstrap scanner. |
Click to show internal directories.
Click to hide internal directories.