From 07d41477cb1888f8d48aebe432d9705b8f0dd0bc Mon Sep 17 00:00:00 2001 From: Vaibhav Kumar Dixit Date: Fri, 24 Nov 2023 00:54:41 -0500 Subject: [PATCH] Explicitly convert to Symbol when doing expression parsing --- src/parsing.jl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/parsing.jl b/src/parsing.jl index 4d89a3109..ee861974b 100644 --- a/src/parsing.jl +++ b/src/parsing.jl @@ -76,8 +76,8 @@ function parse_expr_to_symbolic(x::Symbol, mod::Module) end function parse_expr_to_symbolic(ex, mod::Module) if ex.head == :call - if isdefined(mod, ex.args[1]) - return getfield(mod,ex.args[1])(parse_expr_to_symbolic.(ex.args[2:end],(mod,))...) + if isdefined(mod, Symbol(ex.args[1])) + return getfield(mod,Symbol(ex.args[1]))(parse_expr_to_symbolic.(ex.args[2:end],(mod,))...) else x = parse_expr_to_symbolic(ex.args[1], mod) ys = parse_expr_to_symbolic.(ex.args[2:end],(mod,))