Closed lerno closed 4 years ago
Parsing + Analysing seems fine on master. C-code generation crashes indeed. Constant folding would help here, since then we can just generate the numbers and then we don't have to track the ordering of all the defines..
Exactly, constant folding needs to be a priority moving further along. When doing constant folding it's also important to open up for macros, since macros are evaluated at the same time. For example this should be valid:
type Foo i32[@macro_something()]
Ik was playing around with some macro options, but having non-textual macros does open up a Lot of questions. I'll open a separate issue for those discussions on the forum in this topic.
fixed
This construct causes a crash.