Is it possible to take the quoted Elixir expression (AST tree) as follows:
quote do: 1 + 1
=> {:+, [context: Elixir, import: Kernel], [1, 1]}
And turn it into an Erlang AST?
I looked at the Code module, as well as some Kernel modules that were looking for a function that did this, but I didn't find anything. I’m not even sure that it will be possible ... I don’t know how things like Elixir macros will be presented in Erlang AST.
Thanks in advance!
source
share