Age | Commit message (Collapse) | Author | |
---|---|---|---|
2021-09-28 | expr: Skip codegen for unused expression in conditional with constant expression | Michael Forney | |
This compiles `0 ? e1 : e2` as `e2`, and `1 ? e1 : e2` as `e1` (while still adjusting the type as necessary). | |||
2019-05-12 | eval: Keep track of kind of constant expression we are evaluating | Michael Forney | |
When we are evaluating an arithmetic constant expression, we don't want to indroduce static data definitions for string or compound literals. Fixes #59. |