106
General Discussion / Re: State of progress?
« on: October 24, 2018, 02:33:12 PM »
The documentation describes this a bit in http://c2lang.org/site/development/internals/. It comes down to this:
Clang:
- Tokenizer (includes preprocessor)
- Diagnostics Engine
- Filemanagement (needed for Tokenizer + Diagnostics)
LLVM:
- Utils used by Clang components above.
It would have been fantastic to use the AST from Clang, but the AST is really tuned to single pass parsing+analysis, so really didn't fit..
Clang:
- Tokenizer (includes preprocessor)
- Diagnostics Engine
- Filemanagement (needed for Tokenizer + Diagnostics)
LLVM:
- Utils used by Clang components above.
It would have been fantastic to use the AST from Clang, but the AST is really tuned to single pass parsing+analysis, so really didn't fit..