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.15.1. For the latest release, see v0.17.0.

Display

Printing expressions and equations as math for people to read, LaTeX or Typst, under the names they use.

OperationKindBindingsSummary
expression_namesfunctionJulia, TypeScript, Python, Rust, GoThe variable names an expression or an equation uses, in order of first use: its string leaves under lhs, rhs and args.
print_mathfunctionJulia, TypeScript, Python, Rust, GoPrint one expression, or one equation, as math under a set of declared names: LaTeX for :markdown (Lean Math.printLatex), Typst math for :typst (Math.printTypst).
to_julia_codefunctionJulia, PythonGenerate a Julia script from an ESM file.

All topics