Glassman
Jump to navigation
Jump to search
Glassman is an esoteric programming language made by cinnamony based on the song Mister Glassman.
Commands
Let's paint a picture
This starts the script.
So nervously he looks around
This asks for input.
In front of fans rappin' fast
This outputs the cell at memory pointer in ASCII.
A few years later when now it's prom season
This moves the memory pointer right.
You're in class
This moves the memory pointer left.
And he's always in his head thinking too far ahead
This increments the cell at memory pointer
Don't be shy kid, make your own fate
This decrements the cell at memory pointer.
Even if you think you're bullet proof
This acts like BF's opening [
bracket.
I am glass and so are you
This acts like BF's closing ]
bracket.
They're calling her
This prints the text infront.
Woppity wop
This ends the script, just like it ends the song.
Examples
Cat
An infinitely repeating cat program, which terminates on a null character input, is presented:
Let's paint a picture And he's always in his head thinking too far ahead Even if you think you're bullet proof So nervously he looks around In front of fans rappin' fast I am glass and so are you Woppity wop
Hello World
Let's paint a picture They're calling her Hello, world! Woppity wop
Truth-machine
This program implements a truth-machine:
Let's paint a picture So nervously he looks around A few years later when now it's prom season And he's always in his head thinking too far ahead And he's always in his head thinking too far ahead And he's always in his head thinking too far ahead And he's always in his head thinking too far ahead And he's always in his head thinking too far ahead And he's always in his head thinking too far ahead And he's always in his head thinking too far ahead And he's always in his head thinking too far ahead Even if you think you're bullet proof A few years later when now it's prom season And he's always in his head thinking too far ahead And he's always in his head thinking too far ahead And he's always in his head thinking too far ahead And he's always in his head thinking too far ahead And he's always in his head thinking too far ahead And he's always in his head thinking too far ahead Even if you think you're bullet proof You're in class You're in class Don't be shy kid, make your own fate A few years later when now it's prom season A few years later when now it's prom season Don't be shy kid, make your own fate I am glass and so are you You're in class Don't be shy kid, make your own fate I am glass and so are you You're in class Even if you think you're bullet proof They're calling her 1 I am glass and so are you They're calling her 0 Woppity wop
Interpreter
- Common Lisp implementation of the Glassman programming language.