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.postscript/Ps_machine/index.html

Module Ps_machineSource

Sourcetype value =
  1. | Int of int
  2. | Real of float
  3. | Bool of bool
  4. | Name of string
  5. | Literal of string
  6. | String of string
  7. | Array of array_
  8. | Dict of (string, value) Hashtbl.t
  9. | Operator of string
  10. | Font of float
  11. | Mark
  12. | Null
Sourceand array_ = {
  1. items : value array;
  2. spans : (int * int) array;
  3. exec : bool;
}
Sourcetype paint = {
  1. lines : ((float * float) list * bool) list;
  2. rgb : float * float * float;
  3. how : how;
}
Sourceand how =
  1. | Fill
  2. | Stroke of float
Sourcetype host = {
  1. glyph : char -> (float * float) list list * float;
}
Sourcetype status =
  1. | Running
  2. | Done
  3. | Failed of string
Sourcetype t
Sourceval start : ?host:host -> string -> t
Sourceval step : t -> t
Sourceval run : ?budget:int -> t -> t
Sourceval status : t -> status
Sourceval page : t -> paint list
Sourceval pages : t -> paint list list
Sourceval stack : t -> string list
Sourceval output : t -> string list
Sourceval span : t -> (int * int) option
Sourceval steps : t -> int
Sourceval show : value -> string