Implementation of Rockstar in Racket.
According to its creator, Dylan Beattie:
Rockstar is a dynamically typed computer programming language, designed for creating programs that are also song lyrics. Rockstar is heavily influenced by the lyrical conventions of 1980s hard rock and power ballads.
You can find the Rockstar programming language specification here.
-
Download and install Racket, which includes DrRacket.
-
Install rockstar using raco on the command line:
raco pkg install rockstar
- Launch DrRacket and create a new file:
#lang rockstar
Say "Hello World"
- Click the
Run
button, and you'll see the result:
Hello World
raco pkg update --update-deps rockstar
#lang rockstar
Midnight takes your heart and your soul
While your heart is as high as your soul
Put your heart without your soul into your heart
Give back your heart
If midnight taking 50, and 40 is 10
Shout "Foo"
Else whisper "Bar"
-
File format
-
Comments
-
Variables
-
Simple variables
-
Common variables
-
Proper variables
-
Pronouns
-
-
Types
-
Mysterious
-
Null
-
Boolean
-
Number
-
String
-
-
Literals and Assignment
-
Single Quotes
-
Increment and Decrement
-
Operators
-
Compound Assignment Operators
-
List Arithmetic
-
Poetic Literals
-
Comparison
-
Logical Operations
-
Input & Output
-
Flow Control and Block Syntax
-
Conditionals
-
Loops
-
-
Functions (may exist bugs)