package tiny_languages

  1. Overview
  2. Docs
Small languages from scratch: Scheme, Lisp, Smalltalk-80, Pascal, BASIC, JavaScript, HTML, CSS and more

Install

dune-project
 Dependency

Authors

Maintainers

Sources

0.3.6.tar.gz
md5=7c636383d146d30ac6f2fa234a6253c8
sha512=c79f3823c5f8f57e5038eb640d487c61168b84aa07c61999d6622ef9fd0c890e2b03b4c6a7cdbbe9352a49e25dda00ac7bb14693cee8e3d7beeed251351a2af0

doc/tiny_languages.pascal/Pcode/index.html

Module PcodeSource

Sourcetype csp =
  1. | Wri
  2. | Wrc
  3. | Wrb
  4. | Wrs of string
  5. | Wln
  6. | Rdi
  7. | Rdc
  8. | Rln
  9. | Rnd
  10. | Eol
Sourcetype instr =
  1. | Ldc of int
  2. | Lod of int * int
  3. | Lda of int * int
  4. | Str of int * int
  5. | Ind of int
  6. | Sto
  7. | Ldm of int
  8. | Stm of int
  9. | Ixa of int
  10. | Inc of int
  11. | Chk of int * int
  12. | Adi
  13. | Sbi
  14. | Mpi
  15. | Dvi
  16. | Mod
  17. | Ngi
  18. | Abi
  19. | Sqi
  20. | Odd
  21. | Equ
  22. | Neq
  23. | Les
  24. | Leq
  25. | Grt
  26. | Geq
  27. | And
  28. | Ior
  29. | Not
  30. | Ujp of int
  31. | Fjp of int
  32. | Mst of int
  33. | Cup of int * int
  34. | Ent of int
  35. | Retp
  36. | Retf
  37. | Csp of csp
  38. | Stp
Sourcetype vtype =
  1. | Vint
  2. | Vbool
  3. | Vchar
  4. | Varray of int * int * vtype
  5. | Vrecord of (string * int * vtype) list
Sourcetype variable = {
  1. vname : string;
  2. offset : int;
  3. vtype : vtype;
  4. by_ref : bool;
  5. param : bool;
}
Sourcetype procedure = {
  1. pname : string;
  2. level : int;
  3. parent : int;
  4. first : int;
  5. last : int;
  6. variables : variable list;
}
Sourcetype program = {
  1. code : instr array;
  2. lines : int array;
  3. statements : int array;
  4. procedures : procedure array;
}
Sourceval mark : int
Sourceval show : instr -> string
Sourceval listing : program -> string