Skip to content

Instantly share code, notes, and snippets.

@Vexatos

Vexatos/macro.jl Secret

Last active April 3, 2018 23:41
Show Gist options
  • Save Vexatos/c6920ddae4939767bb434ece4dea282f to your computer and use it in GitHub Desktop.
Save Vexatos/c6920ddae4939767bb434ece4dea282f to your computer and use it in GitHub Desktop.
macro replace(s)
s.args[2] = "Hello World"
s
end
@replace println(42)
macro exportalltypes()
return Expr(:export, filter(val -> match(r"#|@|(^[a-z])", string(val)) == nothing, names(Maple, true))...)
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment