aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordrbaggy <js5@sanger.ac.uk>2021-10-30 07:59:53 +0100
committerdrbaggy <js5@sanger.ac.uk>2021-10-30 07:59:53 +0100
commitdf310a679e4648fdadd6f05abf0eaf9ca753c620 (patch)
tree6e0e86d79a9e222f213280b33ee6fa40fd862322
parent97c29e8d390fa4161e350707866c8d2351ac5c82 (diff)
parent85e041ce62ebb1025717e5ad04a8681d043c3f08 (diff)
downloadperlweeklychallenge-club-df310a679e4648fdadd6f05abf0eaf9ca753c620.tar.gz
perlweeklychallenge-club-df310a679e4648fdadd6f05abf0eaf9ca753c620.tar.bz2
perlweeklychallenge-club-df310a679e4648fdadd6f05abf0eaf9ca753c620.zip
cat ch-*Merge remote-tracking branch 'upstream/master'
y# Please enter a commit message to explain why this merge is necessary,
-rw-r--r--.gitignore2
-rw-r--r--challenge-001/paulo-custodio/Makefile8
-rw-r--r--challenge-001/paulo-custodio/brainfuck/ch-1.bf1
-rw-r--r--challenge-001/paulo-custodio/brainfuck/ch-1.pl22
-rw-r--r--challenge-001/paulo-custodio/brainfuck/ch-2.bf1
-rw-r--r--challenge-001/paulo-custodio/brainfuck/ch-2.pl36
-rw-r--r--challenge-001/paulo-custodio/go.pl18
-rw-r--r--challenge-001/paulo-custodio/stats.pl3
-rw-r--r--challenge-001/paulo-custodio/t/test-1.yaml5
-rw-r--r--challenge-001/paulo-custodio/test.pl8
-rw-r--r--challenge-003/paulo-custodio/Makefile2
-rw-r--r--challenge-003/paulo-custodio/perl/ch-1.pl13
-rw-r--r--challenge-003/paulo-custodio/perl/ch-2.pl4
-rw-r--r--challenge-003/paulo-custodio/test.pl4
-rw-r--r--challenge-120/paulo-custodio/Makefile5
-rw-r--r--challenge-120/paulo-custodio/forth/ch-2.fs22
-rw-r--r--challenge-123/paulo-custodio/Makefile2
-rw-r--r--challenge-123/paulo-custodio/awk/ch-1.awk74
-rw-r--r--challenge-123/paulo-custodio/basic/ch-1.bas159
-rw-r--r--challenge-123/paulo-custodio/bc/ch-1.bc64
-rw-r--r--challenge-123/paulo-custodio/c/ch-1.c103
-rw-r--r--challenge-123/paulo-custodio/cpp/ch-1.cpp60
-rw-r--r--challenge-123/paulo-custodio/forth/ch-1.fs99
-rw-r--r--challenge-123/paulo-custodio/lua/ch-1.lua45
-rw-r--r--challenge-123/paulo-custodio/perl/ch-1.pl46
-rw-r--r--challenge-123/paulo-custodio/perl/ch-2.pl67
-rw-r--r--challenge-123/paulo-custodio/python/ch-1.py45
-rw-r--r--challenge-123/paulo-custodio/python/ch-2.py60
-rw-r--r--challenge-123/paulo-custodio/t/test-1.yaml25
-rw-r--r--challenge-123/paulo-custodio/t/test-2.yaml10
-rw-r--r--challenge-124/paulo-custodio/Makefile5
-rw-r--r--challenge-124/paulo-custodio/ada/ch_1.adb28
-rw-r--r--challenge-124/paulo-custodio/awk/ch-1.awk26
-rw-r--r--challenge-124/paulo-custodio/basic/ch-1.bas22
-rw-r--r--challenge-124/paulo-custodio/bc/ch-1.bc29
-rw-r--r--challenge-124/paulo-custodio/brainfuck/ch-1.bf1
-rw-r--r--challenge-124/paulo-custodio/brainfuck/ch-1.pl37
-rw-r--r--challenge-124/paulo-custodio/c/ch-1.c28
-rw-r--r--challenge-124/paulo-custodio/cpp/ch-1.cpp29
-rw-r--r--challenge-124/paulo-custodio/d/ch_1.d28
-rw-r--r--challenge-124/paulo-custodio/forth/ch-1.fs28
-rw-r--r--challenge-124/paulo-custodio/fortran/ch-1.f9026
-rw-r--r--challenge-124/paulo-custodio/lua/ch-1.lua26
-rw-r--r--challenge-124/paulo-custodio/pascal/ch-1.pas27
-rw-r--r--challenge-124/paulo-custodio/perl/ch-1.pl26
-rw-r--r--challenge-124/paulo-custodio/perl/ch-2.pl49
-rw-r--r--challenge-124/paulo-custodio/python/ch-1.py26
-rw-r--r--challenge-124/paulo-custodio/python/ch-2.py44
-rw-r--r--challenge-124/paulo-custodio/t/test-1.yaml22
-rw-r--r--challenge-124/paulo-custodio/t/test-2.yaml14
-rwxr-xr-xchallenge-136/e-choroba/perl/ch-1.pl26
-rwxr-xr-xchallenge-136/e-choroba/perl/ch-2.pl82
-rwxr-xr-xchallenge-136/jo-37/perl/ch-1.pl70
-rwxr-xr-xchallenge-136/jo-37/perl/ch-2.pl107
-rwxr-xr-xchallenge-136/perlboy1967/perl/ch-1.pl53
-rwxr-xr-xchallenge-136/perlboy1967/perl/ch-2.pl99
-rw-r--r--challenge-136/roger-bell-west/blog.txt1
-rw-r--r--challenge-136/tyler-wardhaugh/clojure/README.md14
-rw-r--r--challenge-136/tyler-wardhaugh/clojure/bb.edn4
-rw-r--r--challenge-136/tyler-wardhaugh/clojure/deps.edn3
-rw-r--r--challenge-136/tyler-wardhaugh/clojure/pom.xml8
-rw-r--r--challenge-136/tyler-wardhaugh/clojure/src/tw/weekly/c136/core.clj12
-rw-r--r--challenge-136/tyler-wardhaugh/clojure/src/tw/weekly/c136/t1.clj26
-rw-r--r--challenge-136/tyler-wardhaugh/clojure/src/tw/weekly/c136/t2.clj20
l---------challenge-136/tyler-wardhaugh/clojure/src/tw/weekly/ch_1.clj1
-rw-r--r--challenge-136/tyler-wardhaugh/clojure/test/tw/weekly/c136/t1_test.clj9
-rw-r--r--challenge-136/tyler-wardhaugh/clojure/test/tw/weekly/c136/t2_test.clj9
-rw-r--r--stats/pwc-challenge-123.json543
-rw-r--r--stats/pwc-challenge-124.json491
-rw-r--r--stats/pwc-current.json292
-rw-r--r--stats/pwc-language-breakdown-summary.json76
-rw-r--r--stats/pwc-language-breakdown.json942
-rw-r--r--stats/pwc-leaders.json476
-rw-r--r--stats/pwc-summary-1-30.json106
-rw-r--r--stats/pwc-summary-121-150.json48
-rw-r--r--stats/pwc-summary-151-180.json40
-rw-r--r--stats/pwc-summary-181-210.json120
-rw-r--r--stats/pwc-summary-211-240.json48
-rw-r--r--stats/pwc-summary-241-270.json26
-rw-r--r--stats/pwc-summary-31-60.json44
-rw-r--r--stats/pwc-summary-61-90.json102
-rw-r--r--stats/pwc-summary-91-120.json106
-rw-r--r--stats/pwc-summary.json66
83 files changed, 3828 insertions, 1776 deletions
diff --git a/.gitignore b/.gitignore
index 6f111fe0c2..ba8194b15c 100644
--- a/.gitignore
+++ b/.gitignore
@@ -13,6 +13,8 @@
*.bak
ch-1
ch-2
+ch_1
+ch_2
go.mod
go.sum
tags
diff --git a/challenge-001/paulo-custodio/Makefile b/challenge-001/paulo-custodio/Makefile
new file mode 100644
index 0000000000..24da326a16
--- /dev/null
+++ b/challenge-001/paulo-custodio/Makefile
@@ -0,0 +1,8 @@
+all: brainfuck/ch-1.bf brainfuck/ch-2.bf
+ perl ../../challenge-001/paulo-custodio/test.pl
+
+brainfuck/ch-1.bf: brainfuck/ch-1.pl
+ perl brainfuck/ch-1.pl > $@
+
+brainfuck/ch-2.bf: brainfuck/ch-2.pl
+ perl brainfuck/ch-2.pl > $@
diff --git a/challenge-001/paulo-custodio/brainfuck/ch-1.bf b/challenge-001/paulo-custodio/brainfuck/ch-1.bf
new file mode 100644
index 0000000000..b1d94a8bb7
--- /dev/null
+++ b/challenge-001/paulo-custodio/brainfuck/ch-1.bf
@@ -0,0 +1 @@
+[-]+++++++++++++++++++++++++++++++++++++++++++++++++++++.[-]++++++++++++++++++++++++++++++++.[-]++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.[-]+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.[-]++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.[-]++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.[-]++++++++++++++++++++++++++++++++.[-]+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.[-]+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.[-]+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.[-]+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.[-]++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.[-]+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.[-]++++++++++++++++++++++++++++++++.[-]+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.[-]++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.[-]+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.[-]++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.[-]++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.[-]+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.[-]++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.[-]+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.[-]+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.
diff --git a/challenge-001/paulo-custodio/brainfuck/ch-1.pl b/challenge-001/paulo-custodio/brainfuck/ch-1.pl
new file mode 100644
index 0000000000..c9f6754286
--- /dev/null
+++ b/challenge-001/paulo-custodio/brainfuck/ch-1.pl
@@ -0,0 +1,22 @@
+#!/usr/bin/env perl
+
+# Challenge 001
+#
+# Challenge #1
+# Write a script to replace the character ‘e’ with ‘E’ in the string
+# ‘Perl Weekly Challenge’. Also print the number of times the character ‘e’
+# is found in the string.
+
+# Output brainfuck program
+
+use Modern::Perl;
+
+my $s = "Perl Weekly Challenge";
+my $text = ($s =~ tr/e/E/)." ".$s;
+
+for (split //, $text) {
+ print "[-]"; # zero cell
+ print "+" x ord($_); # set cell to ASCII value of character
+ print "."; # output character
+}
+print "\n";
diff --git a/challenge-001/paulo-custodio/brainfuck/ch-2.bf b/challenge-001/paulo-custodio/brainfuck/ch-2.bf
new file mode 100644
index 0000000000..0a252de458
--- /dev/null
+++ b/challenge-001/paulo-custodio/brainfuck/ch-2.bf
@@ -0,0 +1 @@
+[-]+++++++++++++++++++++++++++++++++++++++++++++++++.[-]++++++++++.[-]++++++++++++++++++++++++++++++++++++++++++++++++++.[-]++++++++++.[-]++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.[-]+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.[-]++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.[-]++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.[-]++++++++++.[-]++++++++++++++++++++++++++++++++++++++++++++++++++++.[-]++++++++++.[-]++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.[-]+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.[-]++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.[-]++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.[-]++++++++++.[-]++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.[-]+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.[-]++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.[-]++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.[-]++++++++++.[-]+++++++++++++++++++++++++++++++++++++++++++++++++++++++.[-]++++++++++.[-]++++++++++++++++++++++++++++++++++++++++++++++++++++++++.[-]++++++++++.[-]++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.[-]+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.[-]++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.[-]++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.[-]++++++++++.[-]++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.[-]+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.[-]++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.[-]++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.[-]++++++++++.[-]+++++++++++++++++++++++++++++++++++++++++++++++++.[-]+++++++++++++++++++++++++++++++++++++++++++++++++.[-]++++++++++.[-]++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.[-]+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.[-]++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.[-]++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.[-]++++++++++.[-]+++++++++++++++++++++++++++++++++++++++++++++++++.[-]+++++++++++++++++++++++++++++++++++++++++++++++++++.[-]++++++++++.[-]+++++++++++++++++++++++++++++++++++++++++++++++++.[-]++++++++++++++++++++++++++++++++++++++++++++++++++++.[-]++++++++++.[-]++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.[-]+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.[-]++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.[-]++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.[-]++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.[-]+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.[-]++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.[-]++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.[-]++++++++++.[-]+++++++++++++++++++++++++++++++++++++++++++++++++.[-]++++++++++++++++++++++++++++++++++++++++++++++++++++++.[-]++++++++++.[-]+++++++++++++++++++++++++++++++++++++++++++++++++.[-]+++++++++++++++++++++++++++++++++++++++++++++++++++++++.[-]++++++++++.[-]++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.[-]+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.[-]++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.[-]++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.[-]++++++++++.[-]+++++++++++++++++++++++++++++++++++++++++++++++++.[-]+++++++++++++++++++++++++++++++++++++++++++++++++++++++++.[-]++++++++++.[-]++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.[-]+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.[-]++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.[-]++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.[-]++++++++++.
diff --git a/challenge-001/paulo-custodio/brainfuck/ch-2.pl b/challenge-001/paulo-custodio/brainfuck/ch-2.pl
new file mode 100644
index 0000000000..7ef784110a
--- /dev/null
+++ b/challenge-001/paulo-custodio/brainfuck/ch-2.pl
@@ -0,0 +1,36 @@
+#!/usr/bin/env perl
+
+# Challenge 001
+#
+# Challenge #2
+# Write a one-liner to solve the FizzBuzz problem and print the numbers 1
+# through 20. However, any number divisible by 3 should be replaced by the word
+# ‘fizz’ and any divisible by 5 by the word ‘buzz’. Those numbers that are both
+# divisible by 3 and 5 become ‘fizzbuzz’.
+
+# Output brainfuck program
+
+use Modern::Perl;
+
+my $text = "";
+for my $n (1..20) {
+ if ($n%15==0) {
+ $text .= "fizzbuzz\n";
+ }
+ elsif ($n%3==0) {
+ $text .= "fizz\n";
+ }
+ elsif ($n%5==0) {
+ $text .= "buzz\n";
+ }
+ else {
+ $text .= "$n\n";
+ }
+}
+
+for (split //, $text) {
+ print "[-]"; # zero cell
+ print "+" x ord($_); # set cell to ASCII value of character
+ print "."; # output character
+}
+print "\n";
diff --git a/challenge-001/paulo-custodio/go.pl b/challenge-001/paulo-custodio/go.pl
index 97670bc755..d4639380d3 100644
--- a/challenge-001/paulo-custodio/go.pl
+++ b/challenge-001/paulo-custodio/go.pl
@@ -7,7 +7,23 @@ use Path::Tiny;
or die "Usage: ",path($0)->basename," nr\n";
my $nr = sprintf("%03d", $ARGV[0]);
-for my $dir (qw( ada awk basic c cpp d forth lua perl python t )) {
+for my $dir (qw(
+ ada
+ awk
+ basic
+ bc
+ brainfuck
+ c
+ cpp
+ d
+ forth
+ fortran
+ lua
+ pascal
+ perl
+ python
+ t
+ )) {
path("challenge-$nr/paulo-custodio/$dir")->mkpath;
}
path("challenge-$nr/paulo-custodio/README")->spew("Solution by Paulo Custodio\n");
diff --git a/challenge-001/paulo-custodio/stats.pl b/challenge-001/paulo-custodio/stats.pl
index 1cb928a96a..bc344a2db3 100644
--- a/challenge-001/paulo-custodio/stats.pl
+++ b/challenge-001/paulo-custodio/stats.pl
@@ -12,11 +12,14 @@ our %LANG = (
awk => 'awk',
basic => 'bas',
bc => 'bc',
+ brainfuck=>'bf',
c => 'c',
cpp => 'cpp',
d => 'd',
forth => 'fs',
+ fortran => 'f90',
lua => 'lua',
+ pascal => 'pas',
perl => 'pl',
python => 'py',
);
diff --git a/challenge-001/paulo-custodio/t/test-1.yaml b/challenge-001/paulo-custodio/t/test-1.yaml
index c36262e3b7..2c3894252e 100644
--- a/challenge-001/paulo-custodio/t/test-1.yaml
+++ b/challenge-001/paulo-custodio/t/test-1.yaml
@@ -3,8 +3,3 @@
args: Perl Weekly Challenge
input:
output: 5 PErl WEEkly ChallEngE
-- setup:
- cleanup:
- args: Champion
- input:
- output: 0 Champion
diff --git a/challenge-001/paulo-custodio/test.pl b/challenge-001/paulo-custodio/test.pl
index 4e2418c4ae..c8dc2b9f75 100644
--- a/challenge-001/paulo-custodio/test.pl
+++ b/challenge-001/paulo-custodio/test.pl
@@ -17,7 +17,7 @@ our %LANG = (
awk => 'awk',
basic => 'bas',
bc => 'bc',
- brainfuck=>'bfpp',
+ brainfuck=>'bf',
c => 'c',
cpp => 'cpp',
d => 'd',
@@ -137,15 +137,15 @@ sub build {
return "gawk -f $prog --";
}
if (/^basic$/) {
- run("fbc $prog -o $prog_wo_ext") if (!-f $exe || -M $exe > -M $prog);
+ run("fbc $prog") if (!-f $exe || -M $exe > -M $prog);
return $exe;
}
if (/^bc$/) {
return "bc -lq $prog";
}
if (/^brainfuck$/) {
- run("perl bfpp.pl <$prog_wo_ext.bfpp >$prog_wo_ext.bf");
- return "brainfuck $prog_wo_ext.bf";
+ #run("perl bfpp.pl <$prog_wo_ext.bfpp >$prog_wo_ext.bf");
+ return "bf $prog_wo_ext.bf";
}
if (/^c$/) {
run("gcc $prog -o $prog_wo_ext -lmpfr -lgmp") if (!-f $exe || -M $exe > -M $prog