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
AnacondaorMinicondaenvironment in the repository locationconda create --name knight_env python=3.12
- Activate the environment
conda activate knight_env
- Install the following packages
conda install llvmlitepip install pyinstaller
- Build the executable file
pyinstaller --onefile --name knight --icon=assets/knight_icon.ico main.py
- Add the
distfolder to your system PATH environment variables..\..\knight\dist
- Open a brand new terminal, and you should now be able to use the
knightcommand (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
mainfunction to your{NAME_OF_FILE}.knightfile. This is required. - To test prewritten test cases
- knight tests/forloop.knight --debug
Contact Noel Pereira ([email protected]) to know more!