Compare commits
No commits in common. "95421c9e1503d290ea27ed907076e6f88d6a66da" and "09d32a521e08c68eb58c51a92cdcdcf03d80751d" have entirely different histories.
95421c9e15
...
09d32a521e
|
@ -1,5 +1,5 @@
|
||||||
{
|
{
|
||||||
"language": "octave",
|
"language": "octave",
|
||||||
"version": "6.2.0",
|
"version": "6.2.0",
|
||||||
"aliases": ["matlab", "m"]
|
"aliases": []
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,11 +1,20 @@
|
||||||
#!/bin/bash
|
#!/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
|
# Pull Rockstar reference implementation project
|
||||||
source ../../java/15.0.2/build.sh
|
git clone -q "https://github.com/RockstarLang/rockstar.git" rockstar
|
||||||
|
cd rockstar
|
||||||
|
git reset --hard bc9eedc6acb7c0f31a425cc204dcd93cb3e68936
|
||||||
|
|
||||||
# Download Rocky and the wrapper
|
# Install Satriani dependencies
|
||||||
curl -LO "https://github.com/gaborsch/rocky/raw/master/rocky.jar"
|
cd satriani
|
||||||
curl -LO "https://github.com/gaborsch/rocky/raw/master/rockstar"
|
npm install
|
||||||
chmod +x rockstar
|
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
|
||||||
|
|
|
@ -1,5 +1,2 @@
|
||||||
#!/bin/bash
|
export ROCKSTAR_PATH=$PWD/rockstar/satriani
|
||||||
|
|
||||||
# Paths to the Java binary and Rocky jar
|
|
||||||
export ROCKSTAR_PATH=$PWD
|
|
||||||
export PATH=$PWD/bin:$PATH
|
export PATH=$PWD/bin:$PATH
|
|
@ -1,5 +1,5 @@
|
||||||
{
|
{
|
||||||
"language": "rockstar",
|
"language": "rockstar",
|
||||||
"version": "1.0.0",
|
"version": "1.0.0",
|
||||||
"aliases": ["rock", "rocky"]
|
"aliases": ["rockstar", "rock"]
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,4 +1,3 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
# Run Rockstar file (no args or multifile execution, only stdin)
|
node $ROCKSTAR_PATH/rockstar "$@"
|
||||||
$ROCKSTAR_PATH/rockstar "$1"
|
|
|
@ -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 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
|
||||||
|
|
Loading…
Reference in New Issue