thelang-io / the

The Programming Language
https://thelang.io
Apache License 2.0
44 stars 0 forks source link

Introduce addition step before codegen #74

Closed delasy closed 1 year ago

delasy commented 1 year ago

When doing codegen instead of transforming directly into C code instead better to create C AST and codegen into C AST. This will allow later to have dynamic break and continue statements. Which should know jump locations later, after codegen of current block is finished. Right now it requires 2 runs for each async block which is not good for performance.

delasy commented 1 year ago

already done when implementing https://github.com/thelang-io/the/pull/72