A simplistic Jink interpreter built using Python.
This is the original implementation of the Jink programming language. More information can be found at the new repo.
(Not in or by any particular order or specification)
- [✓] Interpreter & REPL
- Classes & OOP
- Arrays
- [½] Modularity & packaging
- Filesystem read & write
- Networking
fun add(let a, let b) {
return a + b
}
let c = add(1000, 337)
print(c) // Print 1337 to the console!
For more examples, check the examples folder.
Assuming you have Python 3.6 or newer, you can get started right away after cloning the project!
To launch the REPL:
python jink.py
To execute your own files:
python jink.py C:/path/to/file.jk
To execute the example files:
python jink.py ./examples/01-hello_world.jk
- Python 3.6+
- Clone the project.
- Run the included
build-executable.bat
file; this will install cx_Freeze and build the executable.
cd build/exe.win32-3.x
jink.exe C:/path/to/your_file.jk
Optionally, you can move the contents of the /build/exe.win32-3.x folder to a folder you've added to your PATH. This will allow you to run Jink via your command line.
I will set up a contribution guide when I can. In the meantime, feel free to provide feedback in any way you see fit. If you do decide to submit a PR, make your decisions as clear as possible and provide as many details as you can.
-
Enormous thanks to king1600 for helping me to better understand interpreter and compiler design and providing me the resources and support I needed to carry out this project.
-
This project also would not have been possible without the incredible resources on PL implementation at Mihai Bazon's blog.
This project is distributed under the MIT License - see the license file for details.
Copyright © 2018-2024 Jacob Noah, jink-lang contributors