Skip to content

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

Notifications You must be signed in to change notification settings

theyashwanthsai/ZenScript

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

37 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages