ale_call

ale_call is an Erlang interface module to the Aleph Rust compiler. It facilitates code generation from Aleph ASTs by converting Erlang terms to JSON and invoking the Aleph Rust binary.

Features

## Example

 1> AST = #{
         <<"type">> => <<"Add">>,
         <<"numberExpr1">> => #{
             <<"type">> => <<"Int">>,
             <<"value">> => <<"3">>
         },
         <<"numberExpr2">> => #{
             <<"type">> => <<"Int">>,
             <<"value">> => <<"4">>
         }
     }.
  #{<<"numberExpr1">> =>
        #{<<"type">> => <<"Int">>,<<"value">> => <<"3">>},
    <<"numberExpr2">> =>
        #{<<"type">> => <<"Int">>,<<"value">> => <<"4">>},
    <<"type">> => <<"Add">>}
  2> {ok, Code} = ale_call:generate(AST).
  {ok,<<"3 + 4\n">>}