Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
biocham
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
21
Issues
21
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
Operations
Operations
Incidents
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Lifeware
biocham
Commits
7a1000e0
Commit
7a1000e0
authored
Oct 20, 2015
by
Thierry Martinez
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Reaction graphs
parent
49afd4b8
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
41 additions
and
13 deletions
+41
-13
doc.pl
doc.pl
+0
-9
install-macos.sh
install-macos.sh
+1
-1
models.pl
models.pl
+24
-2
util.pl
util.pl
+16
-1
No files found.
doc.pl
View file @
7a1000e0
...
...
@@ -165,15 +165,6 @@ goto_level(Level) :-
).
indent
(
Doc
,
Level
)
:-
\
+
(
between
(
0
,
Level
,
_
),
\
+
(
write
(
Doc
,
' '
)
)
).
increment_counter
:-
nb_getval
(
current_counters
,
OldCounters
),
append
(
HigherCounters
,
[
LastCounter
],
OldCounters
),
...
...
install-macos.sh
View file @
7a1000e0
#!/bin/sh
brew
install
swi-prolog gsl libsbml gnuplot
brew
install
swi-prolog gsl libsbml gnuplot
graphviz
models.pl
View file @
7a1000e0
...
...
@@ -491,10 +491,23 @@ optional(Item, List) :-
list_items
(
Options
)
:-
all_ids
(
Options
,
Ids
),
list_ids
(
Ids
).
list_ids
(
Options
,
Ids
).
list_ids
(
Ids
)
:-
list_ids
([],
Ids
).
list_ids
(
Options
,
Ids
)
:-
optional
(
indent
:
Indent
,
Options
),
default
(
Indent
,
0
),
(
member
(
recursive
,
Options
)
->
Recursive
=
yes
;
Recursive
=
no
),
retractall
(
listed_item
(
_
,
_
)),
set_counter
(
list_item_counter
,
0
),
\
+
(
...
...
@@ -503,7 +516,16 @@ list_ids(Ids) :-
count
(
list_item_counter
,
Counter
),
assertz
(
listed_item
(
Counter
,
Id
)),
item
(
Id
,
_
,
_
,
Item
),
format
(
'[~d] ~w\n'
,
[
Counter
,
Item
])
indent
(
Indent
),
format
(
'[~d] ~w\n'
,
[
Counter
,
Item
]),
(
Recursive
=
yes
->
SubIndent
is
Indent
+
1
,
list_items
([
indent
:
SubIndent
,
recursive
,
parent
:
Id
])
;
true
)
)
).
...
...
util.pl
View file @
7a1000e0
...
...
@@ -9,7 +9,9 @@
list_to_equals
/
2
,
list
/
1
,
nth0_eqq
/
3
,
executable_filename
/
1
executable_filename
/
1
,
indent
/
1
,
indent
/
2
]).
name_variables
(
L
)
:-
...
...
@@ -108,6 +110,19 @@ executable_filename(Filename) :-
current_prolog_flag(os_argv, [_Swipl, _X, Filename | _]).
indent(Level) :-
indent(user_output, Level).
indent(Stream, Level) :-
\+ (
between(0, Level, _),
\+ (
write(Stream, '
'
)
)
).
user
:
message_hook
(
_Msg
,
warning
,
_Lines
)
:-
catch
(
count
(
warnings
,
_
),
...
...
Write
Preview
Markdown
is supported
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