Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/parsing.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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,))
Expand Down