Metastatic.Adapters.March.ToMeta (Metastatic v0.30.0)

View Source

Transform March AST (M1) to MetaAST (M2).

Converts March AST JSON maps into MetaAST 3-tuples:

{type_atom, keyword_meta, children_or_value}

Summary

Functions

Transform March AST node or list of nodes to MetaAST.

Functions

transform(nodes)

@spec transform(map() | list() | nil) :: {:ok, term(), map()} | {:error, String.t()}

Transform March AST node or list of nodes to MetaAST.