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.formula/Formula/index.html

Module FormulaSource

Sourcetype cell = int * int
Sourcetype expr =
  1. | Number of float
  2. | Ref of cell
  3. | Range of cell * cell
  4. | Unary of char * expr
  5. | Binop of char * expr * expr
  6. | Call of string * expr list
Sourcetype content =
  1. | Formula of expr
  2. | Invalid of string
  3. | Value of float
  4. | Text of string
  5. | Blank
Sourceval content_of : string -> content
Sourceval parse : string -> (expr, string) result
Sourceval refs : expr -> cell list
Sourceval name_of_cell : cell -> string
Sourceval cell_of_name : string -> cell option
Sourceval to_string : expr -> string
Sourceval shift : (int * int) -> expr -> expr