Skip to content
Element is a simple golfing language that compiles to Perl.
Branch: master
Clone or download
Latest commit 8db079c Feb 17, 2018
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
Documentation Update Documentation Apr 7, 2015
HistoricOriginal.plx Rename HistoricOriginal.pl to HistoricOriginal.plx Oct 7, 2015
Interpreter.plx Rename Interpreter.pl to Interpreter.plx Oct 7, 2015
InterpreterTIO.plx Rename InterpreterTIO to InterpreterTIO.plx Mar 19, 2016
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.