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.

Link to this function

function_arguments(arg1)

View Source
Link to this function

insert_bindings(data, bindings)

View Source

Insert bindings, reverse of extract_bindings(

Link to this function

insert_signatures(data, types)

View Source

Insert signatures, types are bindings types

Convert data to AST, sanitize any unsupported functions

Serialize AST into JSON compatible format