New language: Battlestar

This commit is contained in:
Radon Rosborough 2020-08-22 22:13:52 -06:00
parent 5592a92c1b
commit e5dd562e87
3 changed files with 25 additions and 0 deletions

View File

@ -181,6 +181,18 @@ implement main0 () = ()
input: `PRINT x`,
},
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: {

View File

@ -39,6 +39,10 @@ bwbasic
# Bash
bash
# Battlestar
golang
yasm
# BrainF
beef

View File

@ -5,6 +5,15 @@ set -o pipefail
set -x
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
git clone https://github.com/catseye/Beatnik.git
sed -i 's#env python#env python2#' Beatnik/script/beatnik.py