Improve the code in vli.cpp to be more readable
This commit is contained in:
parent
c63af0057f
commit
fd507f6fcd
1 changed files with 6 additions and 6 deletions
12
src/vli.cpp
12
src/vli.cpp
|
@ -9,17 +9,17 @@
|
||||||
StaticArena<64 * 1024 * 1024> arena;
|
StaticArena<64 * 1024 * 1024> arena;
|
||||||
|
|
||||||
Result<void> run() {
|
Result<void> run() {
|
||||||
auto s = TRY(String::create("(* (+ 1 2 3) 4)"));
|
auto code_str = TRY(String::create("(* (+ 1 2 3) 4)"));
|
||||||
auto reader = Reader(s);
|
auto reader = Reader(code_str);
|
||||||
|
|
||||||
auto r = TRY(reader.read_one());
|
auto parsed = TRY(reader.read_one());
|
||||||
auto s2 = TRY(write_one(r));
|
auto code_str_written = TRY(write_one(parsed));
|
||||||
|
|
||||||
TRY(arena_gc());
|
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>();
|
Function& fun = *compiled.to<Function>();
|
||||||
|
|
||||||
TRY(debug_print(TRY(fun.constants())));
|
TRY(debug_print(TRY(fun.constants())));
|
||||||
|
|
Loading…
Reference in a new issue