Compare commits

..

No commits in common. "95421c9e1503d290ea27ed907076e6f88d6a66da" and "09d32a521e08c68eb58c51a92cdcdcf03d80751d" have entirely different histories.

6 changed files with 21 additions and 16 deletions

View File

@ -1,5 +1,5 @@
{
"language": "octave",
"version": "6.2.0",
"aliases": ["matlab", "m"]
"aliases": []
}

View File

@ -1,11 +1,20 @@
#!/bin/bash
# Using the Rocky implementation of the Rockstar spec
# Download and install NodeJS
curl "https://nodejs.org/dist/v15.10.0/node-v15.10.0-linux-x64.tar.xz" -o node.tar.xz
tar xf node.tar.xz --strip-components=1
rm node.tar.xz
export PATH=$PWD/bin:$PATH
# Download Java
source ../../java/15.0.2/build.sh
# Pull Rockstar reference implementation project
git clone -q "https://github.com/RockstarLang/rockstar.git" rockstar
cd rockstar
git reset --hard bc9eedc6acb7c0f31a425cc204dcd93cb3e68936
# Download Rocky and the wrapper
curl -LO "https://github.com/gaborsch/rocky/raw/master/rocky.jar"
curl -LO "https://github.com/gaborsch/rocky/raw/master/rockstar"
chmod +x rockstar
# Install Satriani dependencies
cd satriani
npm install
cd ../..
# Suppress "(program returned no output)" output at the end of each program
sed -i 's/console.log(result ? result : "(program returned no output)");/if (result) console.log(result);/g' rockstar/satriani/rockstar.js

View File

@ -1,5 +1,2 @@
#!/bin/bash
# Paths to the Java binary and Rocky jar
export ROCKSTAR_PATH=$PWD
export ROCKSTAR_PATH=$PWD/rockstar/satriani
export PATH=$PWD/bin:$PATH

View File

@ -1,5 +1,5 @@
{
"language": "rockstar",
"version": "1.0.0",
"aliases": ["rock", "rocky"]
"aliases": ["rockstar", "rock"]
}

View File

@ -1,4 +1,3 @@
#!/bin/bash
# Run Rockstar file (no args or multifile execution, only stdin)
$ROCKSTAR_PATH/rockstar "$1"
node $ROCKSTAR_PATH/rockstar "$@"

View File

@ -3,4 +3,4 @@
# optimizing for small programs
rename 's/$/\.zig/' "$@" # Add .zig extension
zig build-exe -O ReleaseSafe --color off --cache-dir . --global-cache-dir . --name out *.zig
zig build-exe -O ReleaseSmall --color off --cache-dir . --global-cache-dir . --name out *.zig