Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/moyamejiasr/eldrlang
- Owner: moyamejiasr
- Created: 2020-07-08T17:37:08.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2020-08-05T16:24:52.000Z (over 4 years ago)
- Last Synced: 2023-03-02T20:37:17.863Z (almost 2 years ago)
- Topics: computer, golang, language
- Language: Go
- Homepage:
- Size: 25.4 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: Readme.md
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