Guest User

Untitled

a guest
Jan 19th, 2018
89
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.37 KB | None | 0 0
  1. (deftype Obj [tag Char index Int])
  2. (deftype Cell [car Int cdr Int]) ;; indexes into the "objs" array
  3.  
  4. ;; \c = cell, \s = symbol
  5. (def objs [(Obj.init \c 0)
  6. (Obj.init \c 1)
  7. (Obj.init \c 2)
  8. (Obj.init \s 0)])
  9.  
  10. (def cells [(Cell.init -1 -1) ;; nil
  11. (Cell.init 1 2)
  12. (Cell.init 3 0)])
  13.  
  14. (def syms [@"Aha"
  15. @"Yo"])
Add Comment
Please, Sign In to add comment