piston/lxc/executors/prolog
Titouan Teyssier 0e2131eb1d
add prolog language support (#82)
* add prolog language support
2021-02-14 17:59:33 +01:00

9 lines
187 B
Bash
Executable file

#!/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