Skip to content

moyamejiasr/Eldrlang

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

An evaluated language made in golang for fun

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages