New language: Battlestar
This commit is contained in:
parent
5592a92c1b
commit
e5dd562e87
|
@ -181,6 +181,18 @@ implement main0 () = ()
|
||||||
input: `PRINT x`,
|
input: `PRINT x`,
|
||||||
},
|
},
|
||||||
template: `PRINT "Hello, world!"
|
template: `PRINT "Hello, world!"
|
||||||
|
`,
|
||||||
|
},
|
||||||
|
battlestar: {
|
||||||
|
aliases: ["battlestarc", "bts"],
|
||||||
|
name: "Battlestar",
|
||||||
|
main: "main.bts",
|
||||||
|
run: "bts main.bts",
|
||||||
|
template: `const message = "Hello, world!\n"
|
||||||
|
|
||||||
|
fun main
|
||||||
|
syscall(1, 1, message, len(message))
|
||||||
|
end
|
||||||
`,
|
`,
|
||||||
},
|
},
|
||||||
beatnik: {
|
beatnik: {
|
||||||
|
|
|
@ -39,6 +39,10 @@ bwbasic
|
||||||
# Bash
|
# Bash
|
||||||
bash
|
bash
|
||||||
|
|
||||||
|
# Battlestar
|
||||||
|
golang
|
||||||
|
yasm
|
||||||
|
|
||||||
# BrainF
|
# BrainF
|
||||||
beef
|
beef
|
||||||
|
|
||||||
|
|
|
@ -5,6 +5,15 @@ set -o pipefail
|
||||||
set -x
|
set -x
|
||||||
pushd /tmp >/dev/null
|
pushd /tmp >/dev/null
|
||||||
|
|
||||||
|
# Battlestar
|
||||||
|
git clone https://github.com/xyproto/battlestar.git
|
||||||
|
pushd battlestar >/dev/null
|
||||||
|
make
|
||||||
|
mv cmd/battlestarc/battlestarc /usr/local/bin/
|
||||||
|
mv scripts/bts.sh /usr/local/bin/bts
|
||||||
|
popd >/dev/null
|
||||||
|
rm -rf battlestar
|
||||||
|
|
||||||
# Beatnik
|
# Beatnik
|
||||||
git clone https://github.com/catseye/Beatnik.git
|
git clone https://github.com/catseye/Beatnik.git
|
||||||
sed -i 's#env python#env python2#' Beatnik/script/beatnik.py
|
sed -i 's#env python#env python2#' Beatnik/script/beatnik.py
|
||||||
|
|
Loading…
Reference in New Issue