Directories
¶
Path | Synopsis |
---|---|
compat
|
|
runfiles
Package runfiles provides access to files containted in the source tree.
|
Package runfiles provides access to files containted in the source tree. |
This package implements a static parser generator for parsing expression grammars (PEG) that is compatible with dynamic parser.
|
This package implements a static parser generator for parsing expression grammars (PEG) that is compatible with dynamic parser. |
cmd/parse-grammar
Binary parse-grammar-main is a utility binary to read parse and print PEG grammars.
|
Binary parse-grammar-main is a utility binary to read parse and print PEG grammars. |
example
Binary main shows an example of using the parser that was generated from parser expression grammar (PEG).
|
Binary main shows an example of using the parser that was generated from parser expression grammar (PEG). |
gogen
Package gogen contains a few functions for ad-hoc generation of Go source snippets.
|
Package gogen contains a few functions for ad-hoc generation of Go source snippets. |
template
Package template provides the code templates that are emitted to generate the parser.
|
Package template provides the code templates that are emitted to generate the parser. |
testing
Binary gentests is used to generated the test sources from the tests package.
|
Binary gentests is used to generated the test sources from the tests package. |
charclass
Package charclass provide functions for handling character class regular expressions.
|
Package charclass provide functions for handling character class regular expressions. |
example/cmd
Package example provides an example to parse source file according to grammar defined in includes.peg.
|
Package example provides an example to parse source file according to grammar defined in includes.peg. |
Package parser2 is a clean reimplementation of the parser that uses a generated parser instead of hand-coded one.
|
Package parser2 is a clean reimplementation of the parser that uses a generated parser instead of hand-coded one. |
cmd
Binary example provides an example to parse an arbitrary input with an arbitrary grammar using the automatically generated (bootstrapped) parser2 implementation.
|
Binary example provides an example to parse an arbitrary input with an arbitrary grammar using the automatically generated (bootstrapped) parser2 implementation. |
Package runfiles provides access to files containted in the source tree.
|
Package runfiles provides access to files containted in the source tree. |
Package tests is a holder for various parser tests.
|
Package tests is a holder for various parser tests. |
Package tree provides a few utility functions for working with syntax tree generated by the PEG parser, including serialization, deserialization, canonicalization and diffing.
|
Package tree provides a few utility functions for working with syntax tree generated by the PEG parser, including serialization, deserialization, canonicalization and diffing. |
Click to show internal directories.
Click to hide internal directories.