Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Lifeware
biocham
Commits
bbeade81
Commit
bbeade81
authored
Oct 16, 2015
by
Thierry Martinez
Browse files
add_reaction
parent
555912a7
Changes
4
Hide whitespace changes
Inline
Side-by-side
conservation_laws.plt
View file @
bbeade81
...
...
@@ -51,7 +51,7 @@ test(
]
) :-
% not written 'a => b' to allow flycheck by separate compilation…
command(add_r
ule
('=>'(a, b))),
command(add_r
eaction
('=>'(a, b))),
command(add_conservation(a + b)),
command(check_conservations).
...
...
@@ -66,7 +66,7 @@ test(
]
) :-
% not written 'a => b' to allow flycheck by separate compilation…
command(add_r
ule
('=>'(a, b))),
command(add_r
eaction
('=>'(a, b))),
command(add_conservation(a + 2*b)),
command(check_conservations).
...
...
parameters.pl
View file @
bbeade81
...
...
@@ -13,7 +13,6 @@
set_parameter
(
ParameterList
)
:-
biocham_command
(
*
),
type
(
ParameterList
,
'*'
(
parameter
=
number
)),
print
(
ParameterList
),
nl
,
doc
(
'sets the value of parameters.'
),
\
+
(
member
(
Parameter
=
Value
,
ParameterList
),
...
...
reaction_rules.pl
View file @
bbeade81
:-
module
(
reaction_rules
,
[
rule
/
1
,
reaction
/
1
,
basic_reaction
/
1
,
solution
/
1
,
...
...
@@ -16,12 +15,6 @@
]
).
rule
(
_
for
_
).
rule
(
_
=>
_
).
rule
(
_
<=>
_
).
:-
grammar
(
reaction
).
...
...
toplevel.pl
View file @
bbeade81
...
...
@@ -131,9 +131,15 @@ command(Command) :-
check_types
(
Command0
,
ArgumentTypes
,
NewCommand
),
NewCommand
;
rule
(
Command
)
(
Command
=
(
_
=>
_
)
;
Command
=
(
_
<=>
_
)
;
Command
=
(
_
for
_
)
)
->
add_r
ule
(
Command
)
add_r
eaction
(
Command
)
;
throw
(
error
(
unknown_command
(
Functor
/
Arity
)))
).
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a 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