Mercurial > repo
annotate ibin/brachylog @ 12292:d51f2100210c draft
<kspalaiologos> `` cat <<<"asmbf && bfi output.b" > /hackenv/ibin/asmbf
author | HackEso <hackeso@esolangs.org> |
---|---|
date | Thu, 02 Jan 2020 15:38:21 +0000 |
parents | b044eecae124 |
children |
rev | line source |
---|---|
11870
6460448653be
<ais523> ` printf \'#!/bin/sh\\necho "$1" > tmp/input.brachylog\\n(cd interps/brachylog/brachylog/Brachylog-master/src; swipl -g \'\\\'\'run_from_file("../../../../../tmp/input.brachylog", _, _), halt\'\\\'\' brachylog.pl)\' > ibin/brachylog
HackEso <hackeso@esolangs.org>
parents:
diff
changeset
|
1 #!/bin/sh |
12144
b044eecae124
<fizzie> dwim "fix all the interp stuff"
HackEso <hackeso@esolangs.org>
parents:
11874
diff
changeset
|
2 echo "$1" > /tmp/input.brachylog |
b044eecae124
<fizzie> dwim "fix all the interp stuff"
HackEso <hackeso@esolangs.org>
parents:
11874
diff
changeset
|
3 (cd ${HACKENV-/hackenv}/interps/brachylog/brachylog/Brachylog-master/src; swipl -g 'run_from_file("/tmp/input.brachylog", _, _), write(" |
11874
1fc7b017c0a4
<ais523> ` sed -i -e \'s/halt/write("\\ntrue."), !, halt; write("\\nfalse."), !, halt/\' ibin/brachylog
HackEso <hackeso@esolangs.org>
parents:
11870
diff
changeset
|
4 true."), !, halt; write(" |
12144
b044eecae124
<fizzie> dwim "fix all the interp stuff"
HackEso <hackeso@esolangs.org>
parents:
11874
diff
changeset
|
5 false."), !, halt' brachylog.pl) |