macro bind_doc()
quote
text(s::AbstractString) = println(s)
macro text_str(str)
interpolated = Meta.parse("\"$str\"")
:(text($interpolated))
end
end |> esc
end
@bind_doc()
text"Hi $(1 + 2)"
Here is the implementation of getting Hi 3