Compare commits
6 Commits
87b124c737
...
46edb3b478
Author | SHA1 | Date |
---|---|---|
Brian Seymour | 46edb3b478 | |
Brian Seymour | e7d2cd5f0e | |
Brian Seymour | f5a9cacceb | |
Sirius902 | 2ad9829fc6 | |
TitouanT | 1305dc9e3f | |
Thomas | 295e73d4d9 |
|
@ -1,4 +1,4 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
cd /tmp/$1
|
cd /tmp/$1
|
||||||
timeout -s KILL 3 xargs -a args.args -d '\n' deno run code.code < stdin.stdin
|
timeout -s KILL 3 xargs -a args.args -d '\n' NO_COLOR=true deno run code.code < stdin.stdin
|
||||||
|
|
|
@ -5,4 +5,9 @@ cd /tmp/$1
|
||||||
sed 's/^.*$/:- forall((Goal = (\0), call(Goal)), (write(Goal), nl))./' stdin.stdin |
|
sed 's/^.*$/:- forall((Goal = (\0), call(Goal)), (write(Goal), nl))./' stdin.stdin |
|
||||||
cat code.code - > code.pl
|
cat code.code - > code.pl
|
||||||
|
|
||||||
|
if [ -s args.args ]
|
||||||
|
then
|
||||||
|
echo ":- main($(jq --raw-input -c --slurp 'split("\n")' args.args))." >> code.pl
|
||||||
|
fi
|
||||||
|
|
||||||
timeout -s KILL 3 swipl -g true -t halt code.pl
|
timeout -s KILL 3 swipl -g true -t halt code.pl
|
||||||
|
|
|
@ -2,4 +2,4 @@
|
||||||
|
|
||||||
cd /tmp/$1
|
cd /tmp/$1
|
||||||
cp code.code interim.scala
|
cp code.code interim.scala
|
||||||
timeout -s KILL 10 xargs -a args.args -d '\n' scala interim.scala < stdin.stdin
|
timeout -s KILL 10 xargs -a args.args -d '\n' scala -color never interim.scala < stdin.stdin
|
||||||
|
|
Loading…
Reference in New Issue