Merge branch 'master' into smalltalk
This commit is contained in:
commit
c2f6584040
|
@ -0,0 +1,12 @@
|
|||
curl -L https://ftp.gnu.org/gnu/gforth/gforth-0.7.3.tar.gz -o forth.tar.gz
|
||||
tar xzf forth.tar.gz
|
||||
rm forth.tar.gz
|
||||
|
||||
cd gforth-0.7.3/
|
||||
./BUILD-FROM-SCRATCH --host=x86_64 --build=x86_64
|
||||
|
||||
make
|
||||
make install
|
||||
|
||||
chmod +x ./gforth
|
||||
cd ..
|
|
@ -0,0 +1,5 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
# Put 'export' statements here for environment variables
|
||||
export PATH=$PWD/bin:$PATH
|
||||
export FORTH_PATH=$PWD/gforth-0.7.3
|
|
@ -0,0 +1,7 @@
|
|||
{
|
||||
"language": "forth",
|
||||
"version": "0.7.3",
|
||||
"aliases": [
|
||||
"gforth"
|
||||
]
|
||||
}
|
|
@ -0,0 +1,4 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
$FORTH_PATH/gforth "$@"
|
||||
|
|
@ -0,0 +1 @@
|
|||
.( OK) bye
|
|
@ -1,3 +1,19 @@
|
|||
#!/bin/bash
|
||||
|
||||
sqlite3 < "$1"
|
||||
code=`cat "$1"`
|
||||
|
||||
shift
|
||||
|
||||
argv_text=""
|
||||
|
||||
for arg in "$@"
|
||||
do
|
||||
argv_text+='insert into argv (arg) values ("'"`echo "$arg" | sed 's/"/""/g'`"'");
|
||||
'
|
||||
done
|
||||
|
||||
|
||||
sqlite3 <<< "create table argv (arg text);
|
||||
$argv_text
|
||||
$code"
|
||||
|
||||
|
|
Loading…
Reference in New Issue