elixir_script v0.16.0 ElixirScript.Translator
Translates Elixir AST into JavaScript AST
Summary
Functions
Translates the given Elixir AST to JavaScript AST. The given env
is a ElixirScript.Macro.Env
used to track the variables, imports, aliases, and scopes like Macro.Env
. The JavaScript AST and
the an updated ElixirScript.Macro.Env
is returned
Same as translate/2
, but returns only the JavaScript AST
Functions
Specs
translate(term, ElixirScript.Macro.Env.t) :: {ESTree.Node.t, ElixirScript.Macro.Env.t}
Translates the given Elixir AST to JavaScript AST. The given env
is a ElixirScript.Macro.Env
used to track the variables, imports, aliases, and scopes like Macro.Env
. The JavaScript AST and
the an updated ElixirScript.Macro.Env
is returned
Specs
translate!(term, ElixirScript.Macro.Env.t) :: ESTree.Node.t
Same as translate/2
, but returns only the JavaScript AST