Skip to content

whichxjy/rockstar-rkt

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Ā 

History

91 Commits
Ā 
Ā 
Ā 
Ā 
Ā 
Ā 

Repository files navigation

#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

About

Racket-impleĀ­mented Rockstar šŸ¤˜

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages