mirror of
https://github.com/engineer-man/piston.git
synced 2025-04-21 20:46:26 +02:00
Compare commits
6 commits
87b124c737
...
46edb3b478
Author | SHA1 | Date | |
---|---|---|---|
|
46edb3b478 | ||
|
e7d2cd5f0e | ||
|
f5a9cacceb | ||
|
2ad9829fc6 | ||
|
1305dc9e3f | ||
|
295e73d4d9 |
3 changed files with 7 additions and 2 deletions
|
@ -1,4 +1,4 @@
|
|||
#!/bin/bash
|
||||
|
||||
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 |
|
||||
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
|
||||
|
|
|
@ -2,4 +2,4 @@
|
|||
|
||||
cd /tmp/$1
|
||||
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…
Add table
Add a link
Reference in a new issue