Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/moyamejiasr/eldrlang

An evaluated language made in golang for fun
https://github.com/moyamejiasr/eldrlang

computer golang language

Last synced: 17 days ago
JSON representation

An evaluated language made in golang for fun

Awesome Lists containing this project

README

        

# 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](https://interpreterbook.com/) 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