[fine] Compile iteratively instead of recursively
This commit is contained in:
parent
7fb88ef199
commit
01798236ec
6 changed files with 68 additions and 52 deletions
|
|
@ -57,6 +57,11 @@ fun test() -> f64 {
|
|||
// | RightBrace:'"}"'
|
||||
//
|
||||
// @compiles-to:
|
||||
// | function << module >> (0 args, 0 locals):
|
||||
// | strings (0):
|
||||
// | code (2):
|
||||
// | 0: PushNothing
|
||||
// | 1: Return
|
||||
// | function test (0 args, 0 locals):
|
||||
// | strings (1):
|
||||
// | 0: "discarded"
|
||||
|
|
@ -69,10 +74,5 @@ fun test() -> f64 {
|
|||
// | 5: Jump(7)
|
||||
// | 6: PushFloat(45.0)
|
||||
// | 7: Return
|
||||
// | function << module >> (0 args, 0 locals):
|
||||
// | strings (0):
|
||||
// | code (2):
|
||||
// | 0: PushNothing
|
||||
// | 1: Return
|
||||
// |
|
||||
// @eval: Float(23.0)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue