Skip to content
프로젝트

소개

Rockstar 프로그래밍 언어의 공식 저장소

프로그래밍 언어 및 런타임

이 수치를 측정하는 방법

측정된 스타 증가

in 24h
0
in 7 days
0
in 15 days
-1
in 1 month
-2

서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.

README.md

Original

Do you wanna get rocked?

This is Rockstar, an esoteric programming language whose syntax is inspired by the lyrics to 80s hard rock and heavy metal songs.

Rockstar Logotype

What's Here

Rockstar has three main components:

  • /Starship contains the Starship interpreter for Rockstar, built in C# and .NET
  • /codemirror-lang-rockstar contains the CodeMirror editor used on the Rockstar website
  • /codewithrockstar.com contains the Rockstar website, docs and examples

Building Rockstar

To build the Starship engine, you'll need the .NET 10 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 Release

That'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 Debug

Building with GitHub Actions

Building codewithrockstar.com works like this:

build-rockstar-2.0

  • runs on Linux
  • Builds the parser and interpreter
  • Runs the test suite
  • Uploads artifacts for:
    • Linux native binary
    • WASM interpreter for the website

build-windows-binary

  • builds the Rockstar windows binary

build-macos-binary

  • builds the macOS binary

release-rockstar-engine

  • creates the GitHub release from the latest binaries

build-and-deploy-website

  • Downloads the Rockstar WASM binary
  • builds the CodeMirror editor
  • Builds the Jekyll site
  • Deploys the site to GitHub Pages

Debug/Dev Mode Setup

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\net10.0-browser
> mklink /d examples ..\Starship\Rockstar.Test\programs\examples
codewithrockstar.com
  /wasm --> [ /Starship/Rockstar.Wasm/bin/Debug/net10.0-browser ]
  /examples --> [ /Starship/Rockstar.Test/programs/examples ]
  /index.html
  /example.md
  /js
 	/rockstar-editor.js (from codemirror)

관련 프로젝트 살펴보기

불러오는 중…