Skip to content

silverbullettt/PL-T

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

32 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PL/T virtual machine instructions set


; instruction set:
; (decl var)          -> declare a new variable
; (set e var)         -> set the value of var to e
; (call entry)        -> call dest entry, and push pc + 1 to stack
; (return)            -> return the addr which in the top of stack
; (if-false e addr)   -> if e is #f, go to addr
; (goto addr)         -> go to addr directly
; (arth-op e1 e2 var) -> set the value of e1 arth-op e2 to var
; (cond-op e1 e2 var) -> set the value of e1 cond-op e2 to var
; (odd e var)         -> if e is odd, set var to #t, or #f
; (print e)           -> print the value of e to screen

About

A PL/T compiler written by Racket

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published