|
|
### Jump to Section
|
|
|
## Jump to Section
|
|
|
|
|
|
- [Peg Syntax](#peg-syntax)
|
|
|
- [Peg syntax](#peg-syntax)
|
|
|
- [Parser code generation](#parser-code-generation)
|
|
|
- [Glue code generation](#glue-code-generation)
|
|
|
- [Issues](#issues)
|
|
|
- [Test IDL samples](#test-idl-samples)
|
|
|
|
|
|
## <a name="peg-syntax"></a> Peg Syntax
|
|
|
# <a name="peg-syntax"></a> Peg Syntax
|
|
|
|
|
|
Nonterminals that can take in values are preceded by an identifier
|
|
|
keyword, for example,
|
... | ... | @@ -14,7 +18,7 @@ These identifer keywords are declared as `Value` variables in the parser that is |
|
|
new_chans = result_peg_3.getValues();
|
|
|
```
|
|
|
|
|
|
## Parser code generation
|
|
|
# Parser code generation
|
|
|
|
|
|
When a certain rule matches the input, parser code is generated (which builds the AST). Let's take a look at what code is generated for the `Interface`rule:
|
|
|
```
|
... | ... | |