Skip to content

Welcome to the English Programming Language project! This project aims to create a simple, easy-to-understand programming language designed to be as close to natural English as possible. The goal is to make programming accessible to everyone, including children and beginners.

Notifications You must be signed in to change notification settings

LaksahanWijerathne/English-Programming-Language

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Buy Me A Coffee

English Programming Language

Welcome to the English Programming Language project! This project aims to create a simple, easy-to-understand programming language designed to be as close to natural English as possible. The goal is to make programming accessible to everyone, including children and beginners.

Features

  • Natural Language Syntax: Commands are written in a way that resembles natural English sentences.
  • Modular Design: Easily extend the language by adding new command modules.
  • Interactive CLI: A simple command-line interface to enter and execute commands.

Getting Started

Prerequisites

Make sure you have Python installed on your system. You can download it from python.org.

Installation

Clone the repository:

git clone https://github.com/yourusername/english-programming-language.git
cd english-programming-language

Install the necessary dependencies (if any):

pip install -r requirements.txt
Running the CLI

Start the interactive command-line interface:

python cli.py

Example Commands

  • Set a variable: set x to 10
  • Show a message: show x
  • Multiply a variable: multiply x by 5
  • Set another variable: set y to 20
  • Multiply a variable by another variable: multiply y by x

Adding New Commands

To add a new command:

  1. Create a new file in the commands directory, e.g., new_command.py.
  2. Define your command class in this file, inheriting from BaseCommand.
  3. Update commands/init.py to include your new command class.

Project Structure

  • cli.py: The entry point for the interactive command-line interface.
  • main.py: Handles command registry and dynamic loading of commands.
  • commands/: Contains individual command modules.
  • lexer.py: Tokenizes the input commands.
  • parser.py: Parses the tokens into executable commands.
  • interpreter.py: Executes the parsed commands.

Contributing

Contributions are welcome! Please fork the repository and create a pull request with your changes. Ensure that your code follows the existing style and includes appropriate tests.

License

This project is licensed under the MIT License. See the LICENSE file for details.

Acknowledgements

Special thanks to the contributors and the open-source community for their support and inspiration.

Contributors ✨

Thanks goes to these wonderful people (emoji key):


Laksahan Wijerathna

💻 ⚠️ 📖 🚧

About

Welcome to the English Programming Language project! This project aims to create a simple, easy-to-understand programming language designed to be as close to natural English as possible. The goal is to make programming accessible to everyone, including children and beginners.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages