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.scratch/Scratch_blocks/index.html

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