Skip to content
Racket-impleĀ­mented Rockstar šŸ¤˜
Racket
Branch: master
Clone or download
Fetching latest commitā€¦
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
rockstar
LICENSE
README.md

README.md

#lang rockstar

Implementation of Rockstar in Racket.

About Rockstar

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.

Quick Start

  1. Download and install Racket, which includes DrRacket.

  2. Install rockstar using raco on the command line:

raco pkg install rockstar
  1. Launch DrRacket and create a new file:
#lang rockstar

Say "Hello World"
  1. Click the Run button, and you'll see the result:
Hello World

Update

raco pkg update --update-deps rockstar

Try This

#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"

Implementation

  • 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)

See Also

Why Racket? Why Lisp?

Beautiful Racket

You canā€™t perform that action at this time.