Knight is a general purpose statically typed + JIT Compiled programming language built on top of Python and LLVM.
General functionality includes:
- Mutable and constant variables
- Arithmetic Operators
- If Else statements
- While/For loops
- Built in functions and User Defined Functions
- Download this repo
- Preferably add a new
Anaconda
orMiniconda
environment in the repository locationconda create --name knight_env python=3.12
- Activate the environment
conda activate knight_env
- Install the following packages
conda install llvmlite
pip install pyinstaller
- Build the executable file
pyinstaller --onefile --name knight --icon=assets/knight_icon.ico main.py
- Add the
dist
folder to your system PATH environment variables..\..\knight\dist
- Open a brand new terminal, and you should now be able to use the
knight
command (similar to trying python in terminal) - To test self written code, create a new file with code, named
{NAME_OF_FILE}.knight
- IMPT -> Add the
main
function to your{NAME_OF_FILE}.knight
file. This is required. - To test prewritten test cases
- knight tests/forloop.knight --debug
Contact Noel Pereira ([email protected]) to know more!