xo-interpreter: apply expressions + llvm builtins working!

This commit is contained in:
Roland Conybeare 2025-11-28 19:32:56 -05:00
commit 1d1e72adf3
31 changed files with 531 additions and 50 deletions

View file

@ -21,6 +21,7 @@ namespace xo {
{"def foo = lambda (x : f64, y : f64) 3.1415965;"},
{"def foo = lambda (x : f64) x;"},
{"def foo = lambda (x : f64) { def y = x * x; y; };"},
{"add(1,2);"},
};
}
@ -50,11 +51,13 @@ namespace xo {
log && log(xtag("expr", rr.expr_));
#ifdef OBSOLETE // input not consumed until next line presented
input = input.after_prefix(rr.rem_);
log && log(xtag("post.input", input));
#endif
REQUIRE(input.empty());
//REQUIRE(input.empty());
} catch (std::exception & ex) {
log && log(ex.what());