Skip to content
master
Switch branches/tags
Go to file
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
 
 
 
 
 
 

€ language

A language created for code golf.

A page about this language has been created on esolangs.

Builds: Build status

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 German
  • mientras is while in Spanish
  • topo is greater in Portuguese (update: it should be maior instead, thanks to acrolith for the tip)
  • odejmowanie is subtract in Polish
  • afficher is print in French
  • newlines are called nl sometimes, and the TLD of NETHERLANDS is nl, so I defined a constant NETHERLANDS to display newlines

I cheated a little bit since there is no if keyword, I chose to directly print the last two lines.

Example

./euro.eu

Interpreter in Python

./euro.py

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: