Eval main rather than Unwinding it
This commit is contained in:
@@ -391,8 +391,8 @@ advanceCode = gmCode %~ drop 1
|
|||||||
compile :: Program -> GmState
|
compile :: Program -> GmState
|
||||||
compile p = GmState c [] [] h g sts
|
compile p = GmState c [] [] h g sts
|
||||||
where
|
where
|
||||||
-- find the entry point and start unwinding
|
-- find the entry point and evaluate it
|
||||||
c = [PushGlobal "main", Unwind]
|
c = [PushGlobal "main", Eval]
|
||||||
(h,g) = buildInitialHeap p
|
(h,g) = buildInitialHeap p
|
||||||
sts = def
|
sts = def
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user