theyashwanthsai / ZenScript

Sometimes you should reinvent the wheel. Zenscript is a dynamically typed interpreted language written in python.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ZenScript

Building my own programming language using Python - To understand more about interpreters, and compilers. It includes a lexer to tokenize the input code and provide error handling for illegal characters. Zenscript is a dynamically types interpreted language written in python.

Table of Contents

Project Structure

The project is organized into separate modules for different functionality:

  • constants.py: Defines constants used in the project.
  • errors.py: Contains error handling classes for the interpreter.
  • position.py: Manages position tracking within the input text.
  • tokens.py: Defines token types and the Token class.
  • lexer.py: Contains the Lexer class responsible for tokenizing the input code.
  • main.py: The entry point to the interpreter with the run function.

    More to be added

How to Use

  1. Clone or download the project to your local machine.

  2. Ensure you have Python installed.

  3. Run the shell.py file. python3 shell.py

Examples

Images

demo

Todo

  • If-Else statements
  • Adding functions
  • Write documentation

References:

Ruslan's Blog

Codepulse Repo

About

Sometimes you should reinvent the wheel. Zenscript is a dynamically typed interpreted language written in python.


Languages

Language:Python 100.0%