Skip to content

Latest commit

 

History

History
42 lines (30 loc) · 1.27 KB

README.md

File metadata and controls

42 lines (30 loc) · 1.27 KB

Examples for Eolang objects

Maven Central

You can play with EOLANG here, in a few simple steps:

First, clone this repo to your local machine and go to the sandbox directory (you will need Git installed):

$ git clone https://github.com/cqfn/eo.git
$ cd eo/sandbox

Then, compile the code (you will need Maven 3.3+ and Java SDK 8+ installed):

$ mvn compile

Intermediary *.xml files will be generated in the target directory (it will be created). Also, there will be *.java and *.class files. Feel free to analyze them: EO is parsed into XML, then translated to Java, and then compiled by Java SDK to Java bytecode. Finally, just run the bytecode program through JRE:

$ ./run.sh 9
9th Fibonacci number is 34

Should work.

Then, you can modify *.eo files, run mvn compile to compile them again and run.sh to run it again.

Have fun!