A language created for code golf.
A page about this language has been created on esolangs.
I spend most of my time on PHP scripts and it brought me a question: why am I forced to use
$ for my variables names?
€ is my local currency, so let's use it! Since € is used in many countries, I used some words from EU languages as keywords.
gleichis equal in German
mientrasis while in Spanish
topois greater in Portuguese (update: it should be maior instead, thanks to acrolith for the tip)
odejmowanieis subtract in Polish
afficheris print in French
- newlines are called
nlsometimes, and the TLD of
nl, so I defined a constant
NETHERLANDSto display newlines
I cheated a little bit since there is no
if keyword, I chose to directly print the last two lines.
Interpreter in Python
The interpreter won't do more than execute the script to display 99 bottles of beers.
To run it, save both files then run the Python file with the
.eu script as an argument:
$ python euro.py euro.eu
To run it, save both files then run the Python file with the .eu script as an argument: