mirror of
https://github.com/ProgramSnail/Lama.git
synced 2025-12-27 17:18:48 +00:00
Tests in interpretation
This commit is contained in:
parent
b4f6f48e30
commit
44b8a96e34
9 changed files with 89 additions and 53 deletions
|
|
@ -30,7 +30,7 @@ type config = (prg * State.t) list * int list * Expr.config
|
|||
|
||||
Takes an environment, a configuration and a program, and returns a configuration as a result. The
|
||||
environment is used to locate a label to jump to (via method env#labeled <label_name>)
|
||||
*)
|
||||
*)
|
||||
let rec eval env ((cstack, stack, ((st, i, o) as c)) as conf) = function
|
||||
| [] -> conf
|
||||
| insn :: prg' ->
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue