Commit a12020cd authored by paulflang's avatar paulflang Committed by Miroslav Kratochvil
Browse files

support relational operators in math

parent 84d39477
...@@ -31,7 +31,7 @@ function parse_math(ast::VPtr)::Math ...@@ -31,7 +31,7 @@ function parse_math(ast::VPtr)::Math
return MathVal(ccall(sbml(:ASTNode_getReal), Cdouble, (VPtr,), ast)) return MathVal(ccall(sbml(:ASTNode_getReal), Cdouble, (VPtr,), ast))
elseif ast_is(ast, :ASTNode_isFunction) elseif ast_is(ast, :ASTNode_isFunction)
return MathApply(get_string(ast, :ASTNode_getName), parse_math_children(ast)) return MathApply(get_string(ast, :ASTNode_getName), parse_math_children(ast))
elseif ast_is(ast, :ASTNode_isOperator) elseif ast_is(ast, :ASTNode_isOperator) || ast_is(ast, :ASTNode_isRelational)
return MathApply( return MathApply(
string(Char(ccall(sbml(:ASTNode_getCharacter), Cchar, (VPtr,), ast))), string(Char(ccall(sbml(:ASTNode_getCharacter), Cchar, (VPtr,), ast))),
parse_math_children(ast), parse_math_children(ast),
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment