package tiny_languages

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

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