Non homoiconic languages (Elixir, Julia) usually use quote/unquote syntax, with quote being a construct that transforms code to AST and unquote evaluates an AST. For example in elixir:
a = 3
quote do
if unquote(a) > 3 do
6
end
end
Which produces:
{:if, [context: Elixir, import: Kernel],
[{:>, [context: Elixir, import: Kernel], [4, 3]}, [do: 6]]}In Elixir and Julia the AST is represented by a normal type within the language itself just like Lisp, so the macro can just receive that type, manipulate it with the base language tools or using the special syntax above and return it.