Thanks for your reply!
I am trying to make it more readable by removing the $s. Your suggestion is not more readable than just using the dollar signs.
For example, the expression I am actually trying to build is:
expr = :($du[1] = $κ * $θ * $b + ($σ^2) / 2 * $α * ($b^2))
And your suggestion is to write the following
Expr(:(=), (:ref, du, 1), (:call, :+, (:call, :*, κ, θ, b), (:call, :*, (:call, :/, (:call, :^, σ, 2), 2), 1, (:call, :^, b, 2))))
which is not more readable.
Thanks!