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.smalltalk/St_bytecode/index.html

Module St_bytecodeSource

Sourceval special_selectors : string array
Sourcetype header = {
  1. primitive : int;
  2. num_args : int;
  3. num_temps : int;
  4. frame_size : int;
}
Sourceval encode_header : header -> int
Sourceval decode_header : int -> header
Sourceval primitive_of : int -> int
Sourceval num_args_of : int -> int
Sourceval num_temps_of : int -> int
Sourceval frame_size_of : int -> int
Sourceval trailer_size : int
Sourceval new_method : St_memory.t -> header:header -> literals:oop array -> bytecodes:Bytes.t -> selector:oop -> cls:oop -> source:string -> pcmap:(int * int * int) list -> temp_names:string list -> oop
Sourceval header : St_memory.t -> oop -> header
Sourceval literals : St_memory.t -> oop -> oop array
Sourceval literal : St_memory.t -> oop -> int -> oop
Sourceval bytecodes : St_memory.t -> oop -> Bytes.t
Sourceval selector : St_memory.t -> oop -> oop
Sourceval method_class : St_memory.t -> oop -> oop
Sourceval source : St_memory.t -> oop -> string
Sourceval pcmap : St_memory.t -> oop -> (int * int * int) list
Sourceval temp_names : St_memory.t -> oop -> string list
Sourceval disassemble : show_literal:(int -> string) -> Bytes.t -> (int * string) list
Sourceval length_at : Bytes.t -> int -> int
Sourceval is_send : Bytes.t -> int -> bool