Lambdas are now const while resolving, Aliasing lambdas

This commit is contained in:
Krzosa Karol
2022-10-01 14:21:24 +02:00
parent 02addfb389
commit df291c6eb5
7 changed files with 41 additions and 28 deletions

View File

@@ -10,6 +10,14 @@ In the future
- [ ] Cleanup
- [ ] Remove tuple stuff or cleanup, in the future might replace it with a better implementation
- [ ] Add ability to do i: int = 0 inside for loops
- [ ] The fact that symbols from main file get introduced to the loaded files
might be kind of confusing, need to watch out for that
- [ ] You can't alias Lambdas because they are not evaluated as constant.
I used a little simplification where lambdas and structs were marked as such
in parsing I think. BUT Structs work so it's maybe just a little fix of constant
propagation using Operands, where I will need to modify Operand of lambda to
be constant AND rewrite_const to not rewrite a lambda OR SOMETHING, maybe it's cool
dont know. BUT not sure if we wont need to rewrite the idea that Lambdas can be Decls.
- [ ] Conditional compilation
- [ ] Expand macros