package obytelib

  1. Overview
  2. Docs
type unop =
  1. | NOT
  2. | NEG
  3. | OFFSET of int
  4. | VECTLENGTH
  5. | ISINT
type binop =
  1. | ADD
  2. | SUB
  3. | MUL
  4. | DIV
  5. | MOD
  6. | AND
  7. | OR
  8. | XOR
  9. | LSL
  10. | LSR
  11. | ASR
type compop =
  1. | EQ
  2. | NEQ
  3. | LT
  4. | LE
  5. | GT
  6. | GE
  7. | ULT
  8. | UGE
type t =
  1. | ACC of int
  2. | PUSH
  3. | POP of int
  4. | ASSIGN of int
  5. | ENVACC of int
  6. | PUSH_RETADDR of int
  7. | APPLY of int
  8. | APPTERM of int * int
  9. | RETURN of int
  10. | RESTART
  11. | GRAB of int
  12. | CLOSURE of int * int
  13. | CLOSUREREC of int * int array
  14. | OFFSETCLOSURE of int
  15. | GETGLOBAL of int
  16. | SETGLOBAL of int
  17. | ATOM of int
  18. | MAKEBLOCK of int * int
  19. | MAKEFLOATBLOCK of int
  20. | GETFIELD of int
  21. | GETFLOATFIELD of int
  22. | SETFIELD of int
  23. | SETFLOATFIELD of int
  24. | GETVECTITEM
  25. | SETVECTITEM
  26. | GETSTRINGCHAR
  27. | SETSTRINGCHAR
  28. | BRANCH of int
  29. | BRANCHIF of int
  30. | BRANCHIFNOT of int
  31. | SWITCH of int array * int array
  32. | PUSHTRAP of int
  33. | POPTRAP
  34. | RAISE
  35. | RERAISE
  36. | RAISE_NOTRACE
  37. | CHECK_SIGNALS
  38. | C_CALL of int * int
  39. | CONSTINT of int
  40. | UNAPP of unop
  41. | BINAPP of binop
  42. | COMPARE of compop
  43. | COMPBRANCH of compop * int * int
  44. | OFFSETREF of int
  45. | GETMETHOD
  46. | GETPUBMET of int
  47. | GETDYNMET
  48. | STOP
val string_of_unop : unop -> string
val string_of_binop : binop -> string
val string_of_compop : compop -> string
val to_string : t -> string
val get_ptrs : t -> int list
val get_nexts : int -> t -> int list
OCaml

Innovation. Community. Security.