package tiny_languages

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

Module Scratch_blocksSource

Sourcetype category =
  1. | Motion
  2. | Looks
  3. | Events
  4. | Control
  5. | Sensing
  6. | Operators
  7. | Variables
  8. | Pen
  9. | Lists
  10. | Other
Sourcetype shape =
  1. | Hat
  2. | Stack
  3. | Cap
  4. | C_block
  5. | C_cap
  6. | Reporter
  7. | Predicate
  8. | Ring
  9. | Command_ring
Sourcetype part =
  1. | Word of string
  2. | Num of string
  3. | Text of string
  4. | Menu of string
  5. | Bool
  6. | Lambda of string
Sourcetype spec = {
  1. op : string;
  2. category : category;
  3. shape : shape;
  4. lines : part list list;
}
Sourcetype arg =
  1. | Lit of string
  2. | Block of block
Sourceand block = {
  1. op : string;
  2. args : arg list;
  3. mouths : block list list;
}
Sourcetype script = {
  1. x : float;
  2. y : float;
  3. blocks : block list;
}
Sourceval specs : spec list
Sourceval snap_specs : spec list
Sourceval categories : category list
Sourceval snap_categories : category list
Sourceval category_name : category -> string
Sourceval spec : string -> spec
Sourceval custom_op : string -> string -> string
Sourceval params : string -> string list
Sourceval slots : spec -> part list
Sourceval make : string -> block
Sourceval variable : string -> block