# iex(1)> # [ Paste AST module ] # iex(2)> # Generate AST module for the module `Paul.Engel` ast = AST.generate(Paul.Engel) # iex(3)> # Print the generated AST to Elixir code ast |> Macro.to_string() |> IO.puts() # iex(4)> # Compile the generated AST [{mod, binary}] = Code.compile_quoted(ast) # iex(5)> # Ask Paul.Engel to say hi ;) Paul.Engel.say_hi("stranger")