Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
LCSB-BioCore
SBML.jl
Commits
aa73c957
Commit
aa73c957
authored
Aug 01, 2021
by
anand jain
Browse files
rational mathval
parent
b498d676
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/math.jl
View file @
aa73c957
...
...
@@ -57,6 +57,8 @@ function parse_math(ast::VPtr)::Math
return
MathConst
(
get_string
(
ast
,
:
ASTNode_getName
))
elseif
ast_is
(
ast
,
:
ASTNode_isInteger
)
return
MathVal
(
ccall
(
sbml
(
:
ASTNode_getInteger
),
Cint
,
(
VPtr
,),
ast
))
elseif
ast_is
(
ast
,
:
ASTNode_isRational
)
return
MathVal
(
ccall
(
sbml
(
:
ASTNode_getNumerator
),
Cint
,
(
VPtr
,),
ast
)
//
ccall
(
sbml
(
:
ASTNode_getDenominator
),
Cint
,
(
VPtr
,),
ast
))
elseif
ast_is
(
ast
,
:
ASTNode_isReal
)
return
MathVal
(
ccall
(
sbml
(
:
ASTNode_getReal
),
Cdouble
,
(
VPtr
,),
ast
))
elseif
ast_is
(
ast
,
:
ASTNode_isFunction
)
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment