mirror of
https://github.com/ProgramSnail/Lama.git
synced 2025-12-28 17:48:47 +00:00
Procedures in SM
This commit is contained in:
parent
b4ef95c8bc
commit
087bdfd10a
3 changed files with 65 additions and 30 deletions
|
|
@ -42,7 +42,7 @@ let main =
|
|||
let output =
|
||||
if interpret
|
||||
then Language.eval prog input
|
||||
else failwith "Not implemented yet" (*SM.run (SM.compile prog) input*)
|
||||
else SM.run (SM.compile prog) input
|
||||
in
|
||||
List.iter (fun i -> Printf.printf "%d\n" i) output
|
||||
| `Fail er -> Printf.eprintf "Syntax error: %s\n" er
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue