€ language
A language created for code golf.
A page about this language has been created on esolangs.
Explanation
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.
Keywords:
gleich
is equal in Germanmientras
is while in Spanishtopo
is greater in Portuguese (update: it should be maior instead, thanks to acrolith for the tip)odejmowanie
is subtract in Polishafficher
is print in French- newlines are called
nl
sometimes, and the TLD ofNETHERLANDS
isnl
, so I defined a constantNETHERLANDS
to display newlines
I cheated a little bit since there is no if
keyword, I chose to directly print the last two lines.
Example
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: