package tiny_languages

  1. Overview
  2. Docs
Legend:
Page
Library
Module
Module type
Parameter
Class
Class type
Source

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