[fine] Compile iteratively instead of recursively

This commit is contained in:
John Doty 2024-01-16 09:26:05 -08:00
parent 7fb88ef199
commit 01798236ec
6 changed files with 68 additions and 52 deletions

View file

@ -4,6 +4,11 @@ fun test() -> bool {
// @no-errors
// @compiles-to:
// | function << module >> (0 args, 0 locals):
// | strings (0):
// | code (2):
// | 0: PushNothing
// | 1: Return
// | function test (0 args, 0 locals):
// | strings (0):
// | code (15):
@ -22,11 +27,6 @@ fun test() -> bool {
// | 12: PushTrue
// | 13: BoolNot
// | 14: Return
// | function << module >> (0 args, 0 locals):
// | strings (0):
// | code (2):
// | 0: PushNothing
// | 1: Return
// |
// @eval: Bool(false)
// @type: 15 bool