View Source VacEngine.Processor.Ast (Vac Engine v1.1.1)
Represent the blueprint "simple" AST
Format is compatible with elixir AST
Link to this section Summary
Functions
Describe an AST (to_string())
Deserialize AST from JSON compatible format
Extract bindings
Insert bindings, reverse of extract_bindings(
Insert signatures, types are bindings types
Convert data to AST, sanitize any unsupported functions
Serialize AST into JSON compatible format
Link to this section Functions
Describe an AST (to_string())
Deserialize AST from JSON compatible format
Extract bindings
This convert {:var, [], [["foo", "bar"]]}
to
{:var, [], [0]}
and return [["foo", "bar"]]
in bindings.
Insert bindings, reverse of extract_bindings(
Insert signatures, types are bindings types
Convert data to AST, sanitize any unsupported functions
Serialize AST into JSON compatible format