Project

EarthSciAST

The EarthSciML Abstract Syntax Tree format: schema, operators, coupling, and five language bindings.

Contents

This is the documentation for the older version v0.16.0. For the latest release, see v0.17.0.

Esm.Units.Examples

Lean module Esm.Units.Examples, formal/Esm/Units/Examples.lean at ed59cfa2b070
Imports Esm.Units.GrammarLaws

Concrete checks of the §4.8.2 grammar on the spec’s own example strings (tests, not properties: the kernel evaluates normalisation, lexing and parsing).

def parseChars (cs : List Char) : Except Err UExpr

Normalise, lex and parse (no table lookup).