Update TODO_ParserGen.md

This commit is contained in:
Zihan Chen
2019-04-04 16:17:10 -07:00
committed by GitHub
parent 3da3b7879e
commit b98ad3ac20
+8
View File
@@ -4,6 +4,8 @@
* No need to specify allow ambiguity or not
* Calculate ambiguous **Parse** cases, pointing out which AST need to support ambiguity
* Full CFG power, no limitation
* Experiment: expanding all left-recursive grammer to right-recursive grammar with instructions
* Experiment: optionally inline all rules which don't generate parser functions
* Error message generation
* Error recovering
* Serializing
@@ -30,6 +32,12 @@ class CLASS_NAME [: BASE_CLASS]
- Depended AST definition files
- Visitors selected to generate
- Optional reflection support
- All AST constructors are protected
- Generated factory class
- If AST object pool is enabled
- reflection is disabled
- `Ptr<T>` for all AST types are generated will enumerated `Cast` function.
- Use generated RTTI constructions (e.g. enum class tag for type)
## Types