Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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.
- Host: GitHub
- URL: https://github.com/ericklima-ca/gorinha
- Owner: ericklima-ca
- License: mit
- Created: 2023-09-16T02:09:35.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2023-09-25T11:57:12.000Z (about 1 year ago)
- Last Synced: 2024-06-21T04:51:45.389Z (5 months ago)
- Language: Go
- Size: 5.36 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.en.md
- License: LICENSE
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
```