https://github.com/marioariasc/julieta
An implementation of the Monkey language in Lua
https://github.com/marioariasc/julieta
interpreter lua monkey monkey-language
Last synced: 5 months ago
JSON representation
An implementation of the Monkey language in Lua
- Host: GitHub
- URL: https://github.com/marioariasc/julieta
- Owner: MarioAriasC
- License: apache-2.0
- Created: 2022-05-11T11:15:43.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2023-07-04T14:34:18.000Z (almost 2 years ago)
- Last Synced: 2024-12-01T10:42:53.382Z (5 months ago)
- Topics: interpreter, lua, monkey, monkey-language
- Language: Lua
- Homepage:
- Size: 45.9 KB
- Stars: 6
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Julieta
[Lua](https://www.lua.org/) implementation of the [Monkey Language](https://monkeylang.org/)
Julieta has many sibling implementations.
* Kotlin: [monkey.kt](https://github.com/MarioAriasC/monkey.kt)
* Crystal: [Monyet](https://github.com/MarioAriasC/monyet)
* Scala 3: [Langur](https://github.com/MarioAriasC/langur)
* Ruby 3: [Pepa](https://github.com/MarioAriasC/pepa)
* Python 3: [Bruno](https://github.com/MarioAriasC/bruno)## Status
The book ([Writing An Interpreter In Go](https://interpreterbook.com/)) is fully implemented. Julieta will not have a
compiler implementation## Commands
Before running the tests you must install [busted](olivinelabs.com/busted/) from LuaRocks
```shell
luarocks install busted
```| Script | Description |
|--------------------------------------|----------------------------------------------------|
| [`./tests.sh`](tests.sh) | Run tests |
| [`lua benchmarks.lua`](benchmarks.lua) | Run the classic monkey benchmark (`fibonacci(35)`) |
| [`lua repl.lua`](repl.lua) | Run the Julieta REPL |You can run the benchmarks and repl files with either Lua or LuaJit. I didn't try any other Lua interpreter
## Acknowlegments
Julieta uses the [lua-oo](https://github.com/limadm/lua-oo) library from Daniel Lima