Visitor pattern for walking the AST. Make sure you visit all child production when deriving classes.
| 39 | /// Visitor pattern for walking the AST. Make sure you visit all |
| 40 | /// child production when deriving classes. |
| 41 | virtual void accept(prod_visitor *v) { v->visit(this); } |
| 42 | /// Report a "failed to generate" error. |
| 43 | virtual void fail(const char *reason); |
| 44 | /// Increase the retry count and throw an exception when retry_limit |