Allow any expression as constants

This is only a start. It compiles, but with a few TODOs left open. In particular, it doesn't currently handle constants depending on other constants or functions; nor does it hoist constants.
This commit is contained in:
KtorZ
2024-08-02 17:23:14 +02:00
parent 79cf0b8d97
commit cd0a9440e8
17 changed files with 192 additions and 282 deletions

View File

@@ -19,7 +19,7 @@ pub enum Error {
format!(
"\n{:>13} {}",
"Trace",
if trace.contains("\n") {
if trace.contains('\n') {
trace.lines()
.enumerate()
.map(|(ix, row)| {