Modules§
- core
- Core definition of the domain objects that are used to represent the Regen language
- dynamic
- Utils for dynamically generate AST for source code based on the Language object. Note that this only includes up to the AST, since parse tree hooks cannot be executed dynamically.
- emit
- Functionality to generate output from the
Language
struct. - grammar
- Generated static implementation of the Regen language, generated by Regen itself
- sdk
- Generic implementations of functions and objects that are used to parse plain text into application specific objects.
Macros§
- impl_
union - Generate union implementation for a union rule. Used in generated code.
- list
- helper for parsing a list of parameters using a TokenStream
- merge_
list_ tail - Util macro to merge
first
andrest
in a parse tree. - merge_
list_ tail_ optional_ first - Util macro to merge
first
andrest
in a parse tree. - optional
- Helper for parsing an optional parameter using a TokenStream
- required
- Helper for parsing a required parameter using a TokenStream
- sdk
- Macro that implements the language SDK.
- tree_
cast - Convenience macro for casting enum variants for AST and PT.
Functions§
- parse_
language_ from_ grammar - Create a language from a grammar string