mirror of
https://github.com/engineer-man/piston.git
synced 2025-04-24 05:56:26 +02:00
add prolog language support
This commit is contained in:
parent
0c4c6e7ad5
commit
d805f1a46e
6 changed files with 39 additions and 0 deletions
9
lxc/executors/prolog
Normal file
9
lxc/executors/prolog
Normal file
|
@ -0,0 +1,9 @@
|
|||
#!/bin/bash
|
||||
|
||||
# cd /tmp/$1
|
||||
|
||||
sed 's/^.*$/:- forall((Goal = (\0), call(Goal)), (write(Goal), nl))./' input.input |
|
||||
cat code.code - > code.pl
|
||||
|
||||
timeout -s KILL 3 swipl -g true -t halt code.pl
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue