Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/ericklima-ca/gorinha

Interpretador em Golang da AST da linguagem Rinha.
https://github.com/ericklima-ca/gorinha

Last synced: 6 days ago
JSON representation

Interpretador em Golang da AST da linguagem Rinha.

Awesome Lists containing this project

README

        

# Gorinha :thumbsup:
Interpreter for the [Rinha](https://github.com/aripiprazole/rinha-de-compiler) language's Abstract Syntax Tree (AST).
Developed hastily for the challenge 😢.

### Build
```
go build -o ./bin/gorinha .as long as "rinha" is installed and accessible in $PATH.
```
Builds the program and saves it in the [bin](./bin/) directory.

The `gorinha` binary accepts the AST in `json` format or a `.rinha` file, provided that `rinha` is installed and accessible in the `$PATH`.

### Testing
The initial test files are located in the [files](./files/) directory.
To run tests:
```sh
./bin/gorinha files/print.json
# or
./bin/gorinha files/fib.rinha
```
or
```sh
docker build -t gorinha .
docker run gorinha files/print.json
```