Skip to content

Latest commit

 

History

History
28 lines (24 loc) · 903 Bytes

Readme.md

File metadata and controls

28 lines (24 loc) · 903 Bytes

Eldr (Evaluated, light, direct, recursive) lang

This project is still in development and may lack some controls or functionalities.

Eldrlang is an evaluated language with no professional purpose and inspired in Writing An Interpreter In Go by Thorsten Ball. Made for fun during summer it attempts to execute scripts and raw code from console following a specific syntax.

Syntax

Declaring a variable

  • var string = "hello";
  • var number = 1;

Executing a loop

  • loop { doX(); }

Declaring a function

  • fun f(param) { return param; }
  • f(1);

Example

print("Hello, what is your name?\n");
print("My name is: ");
var name = "";
scan(name);
print("Nice to meet you, ", name, "\n");

How to execute

Just compile the root directory Eldrlang and run.

go get -u github.com/Onelio/Eldrlang

go build github.com/Onelio/Eldrlang