mirror of
https://github.com/engineer-man/piston.git
synced 2025-06-08 11:16:27 +02:00
pkg(brachylog-1.0.0): added brachylog
This commit is contained in:
parent
e95d386697
commit
8d32385b41
7 changed files with 52 additions and 1 deletions
20
packages/brachylog/1.0.0/build.sh
vendored
Normal file
20
packages/brachylog/1.0.0/build.sh
vendored
Normal file
|
@ -0,0 +1,20 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
# build prolog 8.2.4 as dependency
|
||||
source ../../prolog/8.2.4/build.sh
|
||||
|
||||
# curl brachylog 1.0.0
|
||||
curl -L "https://github.com/JCumin/Brachylog/archive/refs/tags/v1.0-ascii.tar.gz" -o brachylog.tar.gz
|
||||
tar xzf brachylog.tar.gz --strip-components=1
|
||||
rm brachylog.tar.gz
|
||||
|
||||
# move swi prolog to working directory
|
||||
cp bin/swipl swipl
|
||||
|
||||
# give execution permission to swipl
|
||||
chmod +x swipl
|
||||
|
||||
# add some code the branchylog.pl so we don't have to escape backslashes while using the interactive mode
|
||||
echo '
|
||||
|
||||
:-feature(argv, [Code, Stdin]), run_from_atom(Code, Stdin, _), halt.' >> prolog_parser/brachylog.pl
|
Loading…
Add table
Add a link
Reference in a new issue