Skip to content

Commit

Permalink
Merge pull request #25 from cpaulbond/split-out-library
Browse files Browse the repository at this point in the history
Moved library/module to a separate file.
  • Loading branch information
housel authored Oct 18, 2019
2 parents f181d84 + 7ab2ca6 commit 1a51d67
Show file tree
Hide file tree
Showing 100 changed files with 455 additions and 388 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
*.hdp
*.hdp
_build
11 changes: 11 additions & 0 deletions ackermann-library.dylan
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
module: dylan-user
define library ackermann
use common-dylan;
use io;
end library;

define module ackermann
use common-dylan, exclude: { format-to-string };
use format-out;
end module;
10 changes: 0 additions & 10 deletions ackermann.dylan
Original file line number Diff line number Diff line change
@@ -1,15 +1,5 @@
module: ackermann
define library ackermann
use common-dylan;
use io;
end library;

define module ackermann
use common-dylan, exclude: { format-to-string };
use format-out;
end module;

begin
local method ackermann (M :: <integer>, N :: <integer>)
case
Expand Down
3 changes: 2 additions & 1 deletion ackermann.lid
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
library: ackermann
executable: ackermann
files: ackermann
files: ackermann-library
ackermann
11 changes: 11 additions & 0 deletions ary-library.dylan
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
module: dylan-user
define library ary
use common-dylan;
use io;
end library;

define module ary
use common-dylan, exclude: { format-to-string };
use format-out;
end module;
10 changes: 0 additions & 10 deletions ary.dylan
Original file line number Diff line number Diff line change
@@ -1,15 +1,5 @@
module: ary
define library ary
use common-dylan;
use io;
end library;

define module ary
use common-dylan, exclude: { format-to-string };
use format-out;
end module;

define constant <integer-vector> = limited(<vector>, of: <integer>);

define function main (arguments)
Expand Down
3 changes: 2 additions & 1 deletion ary.lid
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
library: ary
executable: ary
files: ary
files: ary-library
ary
11 changes: 11 additions & 0 deletions binary-trees-library.dylan
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
module: dylan-user
define library binary-trees
use common-dylan;
use io;
end library;

define module binary-trees
use common-dylan, exclude: { format-to-string };
use format-out;
end module;
10 changes: 0 additions & 10 deletions binary-trees.dylan
Original file line number Diff line number Diff line change
@@ -1,15 +1,5 @@
module: binary-trees
define library binary-trees
use common-dylan;
use io;
end library;

define module binary-trees
use common-dylan, exclude: { format-to-string };
use format-out;
end module;

define constant <tree> = false-or(<node>);

define class <node> (<object>)
Expand Down
3 changes: 2 additions & 1 deletion binary-trees.lid
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
library: binary-trees
executable: binary-trees
files: binary-trees
files: binary-trees-library
binary-trees
11 changes: 11 additions & 0 deletions except-library.dylan
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
module: dylan-user
define library except
use common-dylan;
use io;
end library;

define module except
use common-dylan, exclude: { format-to-string };
use format-out;
end module;
10 changes: 0 additions & 10 deletions except.dylan
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,6 @@ synopsis: implementation of "Exception Handling" benchmark
author: Peter Hinely
copyright: public domain
define library except
use common-dylan;
use io;
end library;

define module except
use common-dylan, exclude: { format-to-string };
use format-out;
end module;


define variable hi :: <integer> = 0;
define variable lo :: <integer> = 0;
Expand Down
3 changes: 2 additions & 1 deletion except.lid
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
library: except
executable: except
files: except
files: except-library
except
11 changes: 11 additions & 0 deletions fannkuch-library.dylan
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
module: dylan-user
define library fannkuch
use common-dylan;
use io;
end library;

define module fannkuch
use common-dylan, exclude: { format-to-string };
use format-out;
end module;
10 changes: 0 additions & 10 deletions fannkuch.dylan
Original file line number Diff line number Diff line change
@@ -1,15 +1,5 @@
module: fannkuch
define library fannkuch
use common-dylan;
use io;
end library;

define module fannkuch
use common-dylan, exclude: { format-to-string };
use format-out;
end module;

define constant <int-vector> = limited(<vector>, of: <integer>);

define function fannkuch (n :: <integer>)
Expand Down
3 changes: 2 additions & 1 deletion fannkuch.lid
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
library: fannkuch
executable: fannkuch
files: fannkuch
files: fannkuch-library
fannkuch
13 changes: 13 additions & 0 deletions fasta-library.dylan
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
module: dylan-user
define library fasta
use common-dylan;
use io;
end library;

define module fasta
use common-dylan, exclude: { format-to-string };
use standard-io;
use streams;
use format-out;
end module;
12 changes: 0 additions & 12 deletions fasta.dylan
Original file line number Diff line number Diff line change
@@ -1,17 +1,5 @@
module: fasta
define library fasta
use common-dylan;
use io;
end library;

define module fasta
use common-dylan, exclude: { format-to-string };
use standard-io;
use streams;
use format-out;
end module;

define constant $alu :: <byte-string> =
"GGCCGGGCGCGGTGGCTCACGCCTGTAATCCCAGCACTTTGG"
"GAGGCCGAGGCGGGCGGATCACCTGAGGTCAGGAGTTCGAGA"
Expand Down
3 changes: 2 additions & 1 deletion fasta.lid
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
library: fasta
executable: fasta
files: fasta
files: fasta-library
fasta
11 changes: 11 additions & 0 deletions fibonacci-library.dylan
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
module: dylan-user
define library fibo
use common-dylan;
use io;
end library;

define module fibo
use common-dylan, exclude: { format-to-string };
use format-out;
end module;
10 changes: 0 additions & 10 deletions fibonacci.dylan
Original file line number Diff line number Diff line change
@@ -1,15 +1,5 @@
module: fibo
define library fibo
use common-dylan;
use io;
end library;

define module fibo
use common-dylan, exclude: { format-to-string };
use format-out;
end module;

define function fibo(M :: <integer>)
=> result :: <integer>;
case
Expand Down
7 changes: 4 additions & 3 deletions fibonacci.lid
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
library: fibo
executable: fibo
files: fibonacci
library: fibonacci
executable: fibonacci
files: fibonacci-library
fibonacci
11 changes: 11 additions & 0 deletions harmonic-library.dylan
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
module: dylan-user
define library harmonic
use common-dylan;
use io;
end library;

define module harmonic
use common-dylan, exclude: { format-to-string };
use format-out;
end module;
10 changes: 0 additions & 10 deletions harmonic.dylan
Original file line number Diff line number Diff line change
@@ -1,15 +1,5 @@
module: harmonic
define library harmonic
use common-dylan;
use io;
end library;

define module harmonic
use common-dylan, exclude: { format-to-string };
use format-out;
end module;

begin
let arg = string-to-integer(element(application-arguments(), 0, default: "1"));
for (n from arg above 0 by -1,
Expand Down
3 changes: 2 additions & 1 deletion harmonic.lid
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
library: harmonic
executable: harmonic
files: harmonic
files: harmonic-library
harmonic
11 changes: 11 additions & 0 deletions hash-library.dylan
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
module: dylan-user
define library hash
use common-dylan;
use io;
end library;

define module hash
use common-dylan, exclude: { format-to-string };
use format-out;
end module;
10 changes: 0 additions & 10 deletions hash.dylan
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,6 @@ synopsis: implementation of "Hash (Associative Arrays) Access" benchmark
author: Peter Hinely
copyright: public domain
define library hash
use common-dylan;
use io;
end library;

define module hash
use common-dylan, exclude: { format-to-string };
use format-out;
end module;


define function main () => ()
let arg = string-to-integer(element(application-arguments(), 0, default: "1"));
Expand Down
3 changes: 2 additions & 1 deletion hash.lid
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
library: hash
executable: hash
files: hash
files: hash-library
hash
11 changes: 11 additions & 0 deletions hash2-library.dylan
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
module: dylan-user
define library hash2
use common-dylan;
use io;
end library;

define module hash2
use common-dylan, exclude: { format-to-string };
use format-out;
end module;
10 changes: 0 additions & 10 deletions hash2.dylan
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,6 @@ synopsis: implementation of "Hashes, Part II" benchmark
author: Peter Hinely
copyright: public domain
define library hash2
use common-dylan;
use io;
end library;

define module hash2
use common-dylan, exclude: { format-to-string };
use format-out;
end module;


define function main () => ()
let arg = string-to-integer(element(application-arguments(), 0, default: "1"));
Expand Down
3 changes: 2 additions & 1 deletion hash2.lid
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
library: hash2
executable: hash2
files: hash2
files: hash2-library
hash2
11 changes: 11 additions & 0 deletions heapsort-library.dylan
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
module: dylan-user
define library heapsort
use common-dylan;
use io;
end library;

define module heapsort
use common-dylan, exclude: { format-to-string };
use format-out;
end module;
10 changes: 0 additions & 10 deletions heapsort.dylan
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,6 @@ synopsis: implementation of "Heapsort" benchmark
author: Peter Hinely
copyright: public domain
define library heapsort
use common-dylan;
use io;
end library;

define module heapsort
use common-dylan, exclude: { format-to-string };
use format-out;
end module;


define constant $IM = 139968;
define constant $IA = 3877;
Expand Down
3 changes: 2 additions & 1 deletion heapsort.lid
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
library: heapsort
executable: heapsort
files: heapsort
files: heapsort-library
heapsort
9 changes: 9 additions & 0 deletions hello-library.dylan
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
module: dylan-user
define library hello
use io;
end library;

define module hello
use format-out;
end module;
Loading

0 comments on commit 1a51d67

Please sign in to comment.