Is there a method to convert a string to Expr? I tried the following but it doesn't work:
julia> convert(Expr, "a=2") ERROR: MethodError: Cannot `convert` an object of type String to an object of type Expr This may have arisen from a call to the constructor Expr(...), since type constructors fall back to convert methods. julia> Expr("a=2") ERROR: TypeError: Expr: expected Symbol, got String in Expr(::Any) at ./boot.jl:279
parse("a=2")(it will convert toSymbolorExprdepending on the contents of the string)parseis right at the top section of the page.