buck-yeh / parsergen

Self-hosted parser/scanner generator from LR grammar with semantic annotations in C++20
MIT License
7 stars 0 forks source link

CalcInt to demonstrate usage of error token #3

Closed buck-yeh closed 2 years ago

buck-yeh commented 3 years ago

$Error grammar rules to tip:

  1. No floating number allowed.
  2. No variable (id) allowed.
buck-yeh commented 2 years ago

The Error Recovery & Parser Logger has been added. It uses an extended grammar from JSON as use cases of $error instead of CalcInt. That's all for now.