Skip to content

Commit

Permalink
interpreter/interp: add error for calls to external functions for #1
Browse files Browse the repository at this point in the history
  • Loading branch information
pdarragh committed Jul 1, 2022
1 parent 7b992e0 commit 71222e0
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions interpreter/interp.rkt
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,10 @@
[new-registers (hash-set registers 'rsp new-rsp)])
(make-state #:with-ip new-ip
#:with-registers new-registers))]
[(Call (? (curry hash-has-key? runtime) external-function))
;; call the external function
;; TODO: implement this!
(error 'step "calls of external functions not yet implemented")]
[(Call dst)
;; Mem.push(ip + wordsize)
;; ip = dst
Expand Down

0 comments on commit 71222e0

Please sign in to comment.