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.2.tar.gz (18.3 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.2-py3-none-any.whl (22.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: egglang-0.2.2.tar.gz
  • Upload date:
  • Size: 18.3 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.2.tar.gz
Algorithm Hash digest
SHA256 7008f662b8416b6a99c67a8677f0053b326ce0bb888675c3a81bb5499a33bc5b
MD5 81638dd928b98287545e800b676123fc
BLAKE2b-256 aca45ade3645d37621286cd151c1e1bc0e8c5c731c3f99ea04cb467e441a25cf

See more details on using hashes here.

File details

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

File metadata

  • Download URL: egglang-0.2.2-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.2-py3-none-any.whl
Algorithm Hash digest
SHA256 c79d2f3f12348c10a5094442e248433e07319e92914edd3165dd84bd75d951fe
MD5 df883c66d4ee005c9513e08ed3f0e737
BLAKE2b-256 af9a6ec084383fda3bc7a5b35f9d30d81e49062ccbcf9497a2d205d3fa13ba96

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