Improve the code in vli.cpp to be more readable

This commit is contained in:
Konstantin Nazarov 2024-08-11 23:04:46 +01:00
parent c63af0057f
commit fd507f6fcd
Signed by: knazarov
GPG key ID: 4CFE0A42FA409C22

View file

@ -9,17 +9,17 @@
StaticArena<64 * 1024 * 1024> arena;
Result<void> run() {
auto s = TRY(String::create("(* (+ 1 2 3) 4)"));
auto reader = Reader(s);
auto code_str = TRY(String::create("(* (+ 1 2 3) 4)"));
auto reader = Reader(code_str);
auto r = TRY(reader.read_one());
auto s2 = TRY(write_one(r));
auto parsed = TRY(reader.read_one());
auto code_str_written = TRY(write_one(parsed));
TRY(arena_gc());
TRY(debug_print(s2));
TRY(debug_print(code_str_written));
auto compiled = TRY(compile(r));
auto compiled = TRY(compile(parsed));
Function& fun = *compiled.to<Function>();
TRY(debug_print(TRY(fun.constants())));