Skip to content
Element is a simple golfing language that compiles to Perl.
Perl
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
Documentation
HistoricOriginal.plx
Interpreter.plx
InterpreterTIO.plx
README.md

README.md

Element

Element is a simple golfing language that compiles to Perl. It was first created in March 2012.

See "Documentation" for details on Element's intructions.

Esolangs.org page for more documentation and examples.

Online interpreter

Examples

Hello World!

Hello\ World\!`

Nth Fibonacci Number

1_'[3:~2@+]`

Explanation:

1                  push a 1
 _'                take input then move it to the control stack
   [      ]        FOR loop
   [3:    ]        make two additional copies of the top number (3 is the total count)
   [  ~   ]        turn one copy into a zero
   [   2@ ]        move from position 0 to position 2, behind the old number
   [     +]        add the old and newer number
           `       output the result
You can’t perform that action at this time.