Code generation

Note: this feature is experimental and the API might change frequently

toexpr(ex) turns any expression (ex) into the equivalent Expr which is suitable for eval. The SymbolicUtils.Code module provides some combinators which provides the ability to construct more complex expressions than just function calls. These include:

  • Let blocks
  • Functions with arguments and keyword arguments
    • Functions with arguments which are to be de-structured
  • Expressions that set array elements in-place
  • Expressions that create an array similar in type to a reference array (currently supports Array, StaticArrays.SArray, and LabelledArrays.SLArray)
  • Expressions that create sparse arrays

Do using SymbolicUtils.Code to get the following bindings

toexpr

Missing docstring.

Missing docstring for SymbolicUtils.Code.toexpr. Check Documenter's build log for details.

Code Combinators

These are all exported when you do using SymbolicUtils.Code

Missing docstring.

Missing docstring for SymbolicUtils.Code.Assignment. Check Documenter's build log for details.

Missing docstring.

Missing docstring for SymbolicUtils.Code.Let. Check Documenter's build log for details.

Missing docstring.

Missing docstring for SymbolicUtils.Code.Func. Check Documenter's build log for details.

Missing docstring.

Missing docstring for SymbolicUtils.Code.SpawnFetch. Check Documenter's build log for details.

Missing docstring.

Missing docstring for SymbolicUtils.Code.SetArray. Check Documenter's build log for details.

Missing docstring.

Missing docstring for SymbolicUtils.Code.MakeArray. Check Documenter's build log for details.

Missing docstring.

Missing docstring for SymbolicUtils.Code.MakeSparseArray. Check Documenter's build log for details.

Missing docstring.

Missing docstring for SymbolicUtils.Code.MakeTuple. Check Documenter's build log for details.

Missing docstring.

Missing docstring for SymbolicUtils.Code.LiteralExpr. Check Documenter's build log for details.