tiny_languages.formula
Formula
tiny_languages.basic
tiny_languages.hypertalk
tiny_languages.javascript
tiny_languages.lang_asm
tiny_languages.lang_c
tiny_languages.lang_css
tiny_languages.lang_html
tiny_languages.lang_json
tiny_languages.lang_jsonnet
tiny_languages.lang_ocaml
tiny_languages.lisp
tiny_languages.pascal
tiny_languages.postscript
tiny_languages.scheme
tiny_languages.scratch
tiny_languages.sexpr
tiny_languages.smalltalk
type cell = int * int
type expr =
| Number of float
| Ref of cell
| Range of cell * cell
| Unary of char * expr
| Binop of char * expr * expr
| Call of string * expr list
type content =
| Formula of expr
| Invalid of string
| Value of float
| Text of string
| Blank
val content_of : string -> content
val parse : string -> (expr, string) result
val refs : expr -> cell list
val name_of_cell : cell -> string
val cell_of_name : string -> cell option
val to_string : expr -> string
val shift : (int * int) -> expr -> expr