Skip to content

Commit

Permalink
Updated README
Browse files Browse the repository at this point in the history
  • Loading branch information
yhirose committed Jul 9, 2022
1 parent 0795e26 commit 5f3807b
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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))`)
* `label { message "..." }` (Error message instruction)
* `{ no_ast_opt }` (No AST node optimazation instruction)

The following syntax is available with `CPPPEGLIB_SYMBOL_TABLE_SUPPORT`.

* `{ declare_symbol "..." }` (Declare symbol instruction)
* `{ check_symbol "..." }` (Check symbol instruction)

Expand Down Expand Up @@ -462,6 +465,8 @@ See actual usages in the [AST calculator example](https://github.com/yhirose/cpp
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.

```peg
Expand Down

0 comments on commit 5f3807b

Please sign in to comment.