Home of the Rockstar programming language
This is Rockstar, an esoteric programming language whose syntax is inspired by the lyrics to 80s hard rock and heavy metal songs.
Rockstar has three main components:
/Starship contains the Starship interpreter for Rockstar, built in C# and .NET/cm-lang-rockstar contains the CodeMirror editor used on the Rockstar website/codewithrockstar.com contains the Rockstar website, docs and examplesTo build the Starship engine, you'll need the .NET 9 SDK
git clone https://github.com/RockstarLang/rockstar.git
cd rockstar
dotnet workload install wasm-tools
dotnet build ./Starship/Starship.sln
dotnet test ./Starship/To build a Rockstar native binary on Linux, you'll need gcc installed, and then:
git clone https://github.com/RockstarLang/rockstar.git
cd rockstar
dotnet publish ./Starship/Rockstar -o binaries -c ReleaseThat'll create a standalone binary executable in binaries/rockstar.
The codewithrockstar.com website is built with Jekyll and hosted on GitHub Pages.
The embedded Rockstar interpreter is the Starship engine compiled to run on web assembly:
dotnet build ./Starship/Starship.sln
dotnet publish ./Starship/Rockstar.Wasm -o codewithrockstar.com/wasm/ -c DebugBuilding codewithrockstar.com works like this:
build-rockstar-2.0
build-windows-binary
build-macos-binary
release-rockstar-engine
build-and-deploy-website
In dev mode, I use symbolic directory links between the various parts of the project. Rebuilding the .NET solution will rebuild the WASM interpreter, which Jekyll can see as /wasm/**, and trigger a site rebuild, and all the Rockstar code examples are part of both the Rockstar.Test .NET test suite project and the codewithrockstar.com site:
> cd codewithrockstar.com
> mklink /d wasm ..\Starship\Rockstar.Wasm\bin\Debug\net8.0-browser
> mklink /d examples ..\Starship\Rockstar.Test\programs\examplescodewithrockstar.com
/wasm --> [ /Starship/Rockstar.Wasm/bin/Debug/net8.0-browser ]
/examples --> [ /Starship/Rockstar.Test/programs/examples ]
/index.html
/example.md
/js
/rockstar-editor.js (from codemirror)Can't roll / pop from nested arrays
Poetic decimals not working in standalone Linux interpreter
If only there was a "random number generator" feature....
rockstarlang added to nixpkgs
Between string and array
Support `every` keyword for second argument to loop statements
Inconsistent behaviour when accessing 2D arrays
Quines
Allow spaces between function arguments
Ambiguous syntax in nested function calls.