Skip to content
Permalink
30143f5d08
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Go to file
 
 
Cannot retrieve contributors at this time
14 lines (13 sloc) 232 Bytes
macro create_ast(fns, tms)
return esc(Expr(:call, fns[1], tms[1], tms[2]))
end
function main()
fns = [:+, :-]
tms = [:x, :y]
tst = @create_ast(fns, tms)
println(tst)
x = 1
y = 2
eval(tst)
end
main()