Inspiration

Much of my inspiration came from SPL (Shakespeare Programming Language), where code is meant to read like a Shakespearean play. I attempted to something similar - using grades as the metric to define any and all variables, usually names.

What it does

GunnLang allows you to define every single person you know by only two values: Their name, and the grade you would assign to them. This, at Gunn, is considered enough (probably because the majority of Gunn students do not know and cannot relate to many other metrics, such as personality or appearance).

How I built it

The compiler for GunnLang is written entirely in Java (8.0), using only native libraries. The compiler goes sentence by sentence, slowly dissecting the meaning of said sentence and the code that it is meant to run.

Challenges I ran into

It was incredibly hard to get something nonsensical (although as a Gunn student, it made perfect sense to me) to translate decently into mathematical expressions that could then be understood by a computer.

Accomplishments that I'm proud of

It took over 12 hours, but I slowly but surely managed to work out and write a somewhat consistent translator from grades to numbers!

What I learned

It is incredibly hard, like SERIOUSLY hard, to write a higher level programming language. Even though all mine does is math and conversion and display of numbers into characters, it was insanely hard to accomplish in the timeframe that I did.

What's next for GunnLang - The Language For Gunn Students by a Gunn Student

You can do math and assign variables, next is gotos and functions! The pool atop Spangenberg will be used as somewhat of a teleporter, being the route to many locations in the future!

Built With

Share this project:

Updates