fix prolog executor and instructions

This commit is contained in:
Brian Seymour 2021-02-19 00:33:39 -06:00
parent 2ca831f822
commit 87b124c737
2 changed files with 5 additions and 5 deletions

View File

@ -16,7 +16,8 @@ apt-get update
apt-get install -y \
nano wget build-essential pkg-config libxml2-dev \
libsqlite3-dev mono-complete curl cmake libpython2.7-dev \
ruby libtinfo-dev unzip git openssl libssl-dev sbcl libevent-dev
ruby libtinfo-dev unzip git openssl libssl-dev sbcl libevent-dev \
ninja-build
# install python2
# final binary: /opt/python2/Python-2.7.17/python
@ -294,7 +295,7 @@ rm $SUB_DIR.tar.gz
cd $SUB_DIR
mkdir build
cd build
cmake -DSWIPL_PACKAGES_JAVA=OFF -DSWIPL_PACKAGES_X=OFF -DMULTI_THREADED=OFF -G Ninja ..
cmake -DSWIPL_PACKAGES_JAVA=OFF -DSWIPL_PACKAGES_X=OFF -DMULTI_THREADED=OFF -DINSTALL_DOCUMENTATION=OFF -G Ninja ..
ninja
echo "export PATH=\$PATH:/opt/swipl/$SUB_DIR/build/src" >> /opt/.profile
source /opt/.profile

View File

@ -2,8 +2,7 @@
cd /tmp/$1
sed 's/^.*$/:- forall((Goal = (\0), call(Goal)), (write(Goal), nl))./' input.input |
cat code.code - > code.pl
sed 's/^.*$/:- forall((Goal = (\0), call(Goal)), (write(Goal), nl))./' stdin.stdin |
cat code.code - > code.pl
timeout -s KILL 3 swipl -g true -t halt code.pl