Add support for CONSERVE parsing.
* Extend stoichiometric expressions to allow negative coefficients. * Check that terms in a reaction expression are all non-negative. * Add CONSERVE keyword. * Add `ConserveExpression` and corresponding parsing behaviour. * Add unit tests for above and for recognition of KINETIC block as a `procedure`.
Showing
- modcc/expression.cpp 26 additions, 0 deletionsmodcc/expression.cpp
- modcc/expression.hpp 27 additions, 0 deletionsmodcc/expression.hpp
- modcc/parser.cpp 64 additions, 3 deletionsmodcc/parser.cpp
- modcc/parser.hpp 1 addition, 0 deletionsmodcc/parser.hpp
- modcc/token.cpp 1 addition, 0 deletionsmodcc/token.cpp
- modcc/token.hpp 1 addition, 1 deletionmodcc/token.hpp
- tests/modcc/test_lexer.cpp 9 additions, 1 deletiontests/modcc/test_lexer.cpp
- tests/modcc/test_parser.cpp 92 additions, 4 deletionstests/modcc/test_parser.cpp
Please register or sign in to comment