Updated README

This commit is contained in:
yhirose 2022-07-08 20:35:05 -04:00
parent 0795e26aaa
commit 5f3807b2c1

View File

@ -34,6 +34,9 @@ The PEG syntax is well described on page 2 in the [document](http://www.brynosau
* `exp⇑label` or `exp^label` (Syntax sugar for `(exp / %recover(label))`) * `exp⇑label` or `exp^label` (Syntax sugar for `(exp / %recover(label))`)
* `label { message "..." }` (Error message instruction) * `label { message "..." }` (Error message instruction)
* `{ no_ast_opt }` (No AST node optimazation instruction) * `{ no_ast_opt }` (No AST node optimazation instruction)
The following syntax is available with `CPPPEGLIB_SYMBOL_TABLE_SUPPORT`.
* `{ declare_symbol "..." }` (Declare symbol instruction) * `{ declare_symbol "..." }` (Declare symbol instruction)
* `{ check_symbol "..." }` (Check symbol instruction) * `{ check_symbol "..." }` (Check symbol instruction)
@ -462,6 +465,8 @@ See actual usages in the [AST calculator example](https://github.com/yhirose/cpp
Symbol Table Symbol Table
------------ ------------
NOTE: This feature is available with `CPPPEGLIB_SYMBOL_TABLE_SUPPORT`.
Simple symbol table support is available with `declare_symbol` and `check_symbol` instructions. Simple symbol table support is available with `declare_symbol` and `check_symbol` instructions.
```peg ```peg