Skip to content

noelp2500/Knight-Programming-Language

Repository files navigation

Knight Programming Language

Knight is a general purpose statically typed + JIT Compiled programming language built on top of Python and LLVM.

General functionality includes:

  1. Mutable and constant variables
  2. Arithmetic Operators
  3. If Else statements
  4. While/For loops
  5. Built in functions and User Defined Functions

Setup

  1. Download this repo
  2. Preferably add a new Anaconda or Miniconda environment in the repository location
    • conda create --name knight_env python=3.12
  3. Activate the environment
    • conda activate knight_env
  4. Install the following packages
    • conda install llvmlite
    • pip install pyinstaller
  5. Build the executable file
    • pyinstaller --onefile --name knight --icon=assets/knight_icon.ico main.py
  6. Add the dist folder to your system PATH environment variables
    • ..\..\knight\dist
  7. Open a brand new terminal, and you should now be able to use the knight command (similar to trying python in terminal)
  8. To test self written code, create a new file with code, named {NAME_OF_FILE}.knight
  9. IMPT -> Add the main function to your {NAME_OF_FILE}.knight file. This is required.
  10. To test prewritten test cases
    • knight tests/forloop.knight --debug

Contact Noel Pereira ([email protected]) to know more!

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published