Compare commits

...

3 Commits

6 changed files with 16 additions and 21 deletions

View File

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

View File

@ -1,20 +1,11 @@
#!/bin/bash #!/bin/bash
# Download and install NodeJS # Using the Rocky implementation of the Rockstar spec
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
# Pull Rockstar reference implementation project # Download Java
git clone -q "https://github.com/RockstarLang/rockstar.git" rockstar source ../../java/15.0.2/build.sh
cd rockstar
git reset --hard bc9eedc6acb7c0f31a425cc204dcd93cb3e68936
# Install Satriani dependencies # Download Rocky and the wrapper
cd satriani curl -LO "https://github.com/gaborsch/rocky/raw/master/rocky.jar"
npm install curl -LO "https://github.com/gaborsch/rocky/raw/master/rockstar"
cd ../.. chmod +x rockstar
# 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,2 +1,5 @@
export ROCKSTAR_PATH=$PWD/rockstar/satriani #!/bin/bash
# Paths to the Java binary and Rocky jar
export ROCKSTAR_PATH=$PWD
export PATH=$PWD/bin:$PATH export PATH=$PWD/bin:$PATH

View File

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

View File

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

View File

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