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. | GETBYTESCHAR
  27. | SETBYTESCHAR
  28. | GETSTRINGCHAR
  29. | BRANCH of int
  30. | BRANCHIF of int
  31. | BRANCHIFNOT of int
  32. | SWITCH of int array * int array
  33. | PUSHTRAP of int
  34. | POPTRAP
  35. | RAISE
  36. | RERAISE
  37. | RAISE_NOTRACE
  38. | CHECK_SIGNALS
  39. | C_CALL of int * int
  40. | CONSTINT of int
  41. | UNAPP of unop
  42. | BINAPP of binop
  43. | COMPARE of compop
  44. | COMPBRANCH of compop * int * int
  45. | OFFSETREF of int
  46. | GETMETHOD
  47. | GETPUBMET of int
  48. | GETDYNMET
  49. | 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.