Skip to main content

A basic programming lang written in Python

Project description

███████╗ ██████╗  ██████╗
██╔════╝██╔════╝ ██╔════╝
█████╗  ██║  ███╗██║  ███╗
██╔══╝  ██║   ██║██║   ██║
███████╗╚██████╔╝╚██████╔╝
╚══════╝ ╚═════╝  ╚═════╝

A basic interpreted programming language built with Python.


📚 Documentation

Everything you need to learn, understand, and contribute to EggLang.

📖 Topic Description
📘 Language Syntax Learn the language grammar, keywords, data types, operators, built-in functions, and syntax.
🏗️ Architecture Overview Explore how EggLang works internally, from lexing and parsing to AST evaluation and runtime execution.
💻 Example Programs Browse small example programs that demonstrate EggLang's syntax and common language features.
🧪 Testing Guide Review the project's test suite and the cases used to validate language features.
🤝 Contributing Guide Learn how to contribute, report issues, and submit improvements.

Introduction

A basic programming language with support for common functionality like loops, variables, and data types. It just doesn't have OOP / classes.


📦 Installation

EggLang is published on PyPI, so you can install the interpreter with a single command — no advanced setup needed.

Requirements: Python and pip.

pip install egglang

After installation, verify it by running:

egg --v

or

egg --version

Both will print the EGG logo.

Now you can run simple .egg files.

Note: a lot of functionality isn't implemented yet, since most of the effort so far has gone into the interpreter itself. That's why there's no CLI editor to test code directly in the terminal yet.


🚀 Quick Start

Once you've installed the interpreter, you can start running EGG code right away.

Create a simple .egg file and write your EGG code in it. Here's a "Hello, World!" example:

show("Hello, World!")

Save the file, open a terminal in that file's directory, and run:

egg run file.egg

Your EGG code will run smoothly.

Calculator-without-built-in-functions

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

egglang-0.2.3.tar.gz (18.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

egglang-0.2.3-py3-none-any.whl (22.9 kB view details)

Uploaded Python 3

File details

Details for the file egglang-0.2.3.tar.gz.

File metadata

  • Download URL: egglang-0.2.3.tar.gz
  • Upload date:
  • Size: 18.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.13

File hashes

Hashes for egglang-0.2.3.tar.gz
Algorithm Hash digest
SHA256 4cb9ae7fd1db133a6f88e22e347792ac989ef33af197a304e32487557d42e986
MD5 50e13d71dd6fe0f79cd2ab6df9e0e436
BLAKE2b-256 e81d108033be1f6b9d6847c62f29cdb9effc96ff5003834352e2755e897d1c72

See more details on using hashes here.

File details

Details for the file egglang-0.2.3-py3-none-any.whl.

File metadata

  • Download URL: egglang-0.2.3-py3-none-any.whl
  • Upload date:
  • Size: 22.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.13

File hashes

Hashes for egglang-0.2.3-py3-none-any.whl
Algorithm Hash digest
SHA256 d55aad206981ef5fbde736967fccb3338c2234f8bf286bfea8179d0b4e1fe8b9
MD5 cff210daeb094e50212c75d6b5cf991d
BLAKE2b-256 14087616a4b38d9376a9fd95229d9505debf8ea79c0959fa3fa986acf8a49929

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page