Skip to main content

A natural-language programming language that compiles to Python

Project description

๐Ÿš€ AbuLang - Natural Language Programming

A natural-language programming language that makes coding intuitive and accessible.

โœจ NEW: AbuLang v2.0 with Module 4.0.0

The most natural programming experience ever!

๐Ÿš€ Module 4.0.0 - Parentheses-Free Syntax

# No parentheses needed!
show "Hello, World!"
show math.sqrt 16
show ascii "A"

๐ŸŽฏ Smart Features

# Smart string interpolation
age = 25
show "Age: {age}, Next year: {age + 1}"

# Smart number types
x = 7.0  # โ†’ int automatically

# Built-in functions
show ascii "A"      # 65
show binary 10      # 0b1010

# Internal libraries (no libra needed!)
show math.sqrt 16
show stat.mean [1, 2, 3]

# Null objects with properties (JavaScript-like!)
person = null
person.name = "Abu"
person.age = 25
show "Name: {person.name}"

๐Ÿ‘‰ Module 4.0.0: MODULE_4.0.0_RELEASE.md | Examples
๐Ÿ‘‰ Smart Features: SMART_FEATURES_QUICK_REF.md | Full Documentation

๐Ÿ“ Project Structure

AbuLang CodingLang/
โ”‚
โ”œโ”€โ”€ ๐Ÿ“ฑ Core Application
โ”‚   โ”œโ”€โ”€ AbuLang.py          # Main application
โ”‚   โ”œโ”€โ”€ abulang_idle.py     # IDLE interface
โ”‚   โ”œโ”€โ”€ cli.py              # Command-line interface
โ”‚   โ”œโ”€โ”€ setup.py            # Package setup
โ”‚   โ””โ”€โ”€ AbuLang.bat         # Quick launcher
โ”‚
โ”œโ”€โ”€ ๐Ÿ”ง Module/              # Core interpreter modules
โ”‚   โ”œโ”€โ”€ abu_core.py         # Core interpreter
โ”‚   โ”œโ”€โ”€ runner.py           # Code runner
โ”‚   โ”œโ”€โ”€ idle.py             # IDLE backend
โ”‚   โ””โ”€โ”€ idle_gui.py         # IDLE GUI
โ”‚
โ”œโ”€โ”€ ๐ŸŒ web/                 # Web IDE
โ”‚   โ”œโ”€โ”€ abulang-ide-standalone.html  # Single-file IDE
โ”‚   โ””โ”€โ”€ playground/         # Multi-file IDE
โ”‚
โ”œโ”€โ”€ ๐Ÿ“ฆ dist/                # Distribution files
โ”‚   โ””โ”€โ”€ AbuLang.exe         # Windows executable
โ”‚
โ”œโ”€โ”€ ๐Ÿ› ๏ธ essentials/          # Essential resources
โ”‚   โ”œโ”€โ”€ commands.yaml       # Command definitions
โ”‚   โ””โ”€โ”€ python/             # Python dependencies
โ”‚
โ”œโ”€โ”€ ๐Ÿ”จ build-scripts/       # Build & deployment
โ”‚   โ”œโ”€โ”€ build_exe.bat       # Windows build
โ”‚   โ”œโ”€โ”€ build_macos.sh      # macOS build
โ”‚   โ”œโ”€โ”€ build_android.sh    # Android build
โ”‚   โ”œโ”€โ”€ buildozer.spec      # Mobile config
โ”‚   โ””โ”€โ”€ cleanup.bat         # Cleanup script
โ”‚
โ”œโ”€โ”€ ๐Ÿ“– docs/                # Documentation
โ”‚   โ”œโ”€โ”€ README.md           # This file
โ”‚   โ”œโ”€โ”€ GETTING_STARTED.txt # Quick start
โ”‚   โ”œโ”€โ”€ LANGUAGE_COMMANDS.md # Language reference
โ”‚   โ””โ”€โ”€ BUILD_OPTIONS.md    # Build guide
โ”‚
โ”œโ”€โ”€ ๐Ÿ“ examples/            # Example code
โ”‚   โ””โ”€โ”€ example.abu         # Sample programs
โ”‚
โ””โ”€โ”€ ๐Ÿงช tests/               # Test files
    โ”œโ”€โ”€ test_*.py           # Python tests
    โ”œโ”€โ”€ test-*.html         # Web tests
    โ””โ”€โ”€ validate-*.js       # Validation scripts

๐Ÿš€ Quick Start

Run the Application

python AbuLang.py

Run from Command Line

python cli.py example.abu

Use Web IDE

Open web/abulang-ide-standalone.html in your browser

๐Ÿ“š Documentation

  • Getting Started: docs/GETTING_STARTED.txt
  • Language Reference: docs/LANGUAGE_COMMANDS.md
  • IDLE Commands: docs/IDLE_COMMANDS.md
  • Build Guide: docs/BUILD_OPTIONS.md

๐Ÿ”จ Building

Windows Executable

cd build-scripts
build_exe.bat

macOS Application

cd build-scripts
./build_macos.sh

Android APK

cd build-scripts
./build_android.sh

๐Ÿงช Testing

cd tests
python test_abulang.py

๐Ÿ“ฆ Installation

From Source

pip install -e .

From Executable

Run dist/AbuLang.exe (Windows)

๐ŸŒ Web IDE

Two versions available:

  1. Standalone (web/abulang-ide-standalone.html)

    • Single HTML file
    • Works offline
    • Easy to share
  2. Playground (web/playground/)

    • Multi-file version
    • Better for development
    • Deploy to web servers

๐ŸŽฏ Features

  • โœ… Natural language syntax
  • โœ… Easy to learn
  • โœ… Cross-platform
  • โœ… Web-based IDE
  • โœ… Desktop application
  • โœ… Mobile support (Android/iOS)
  • โœ… Syntax highlighting
  • โœ… Interactive IDLE

๐Ÿ“ Example Code

# Hello World
show "Hello, World!"

# Variables
name = "Abu"
age = 25

# User Input
name = prompt "What's your name?"
show $"Hello {name}!"

# Conditionals
check age >= 18:
    show "You're an adult"
else:
    show "You're a minor"

# Loops
loopf i in range(5):
    show i

# Functions
def greet(name):
    show $"Hello {name}!"
    return name

๐Ÿค Contributing

  1. Fork the repository
  2. Create your feature branch
  3. Commit your changes
  4. Push to the branch
  5. Create a Pull Request

๐Ÿ“„ License

See LICENSE file for details

๐Ÿ”— Links


Made with โค๏ธ by Abu

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

abulang-4.1.0.tar.gz (47.7 kB view details)

Uploaded Source

Built Distribution

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

abulang-4.1.0-py3-none-any.whl (55.2 kB view details)

Uploaded Python 3

File details

Details for the file abulang-4.1.0.tar.gz.

File metadata

  • Download URL: abulang-4.1.0.tar.gz
  • Upload date:
  • Size: 47.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.5

File hashes

Hashes for abulang-4.1.0.tar.gz
Algorithm Hash digest
SHA256 e8458495df7d94b4ca6818cd7625f377e238ab9ecb2f6ef561d669dbed1cb80e
MD5 941f0c8693492cffa119eed335bea35c
BLAKE2b-256 e98f2c25e4adc0e516d99f762b1f24106b837dc8b21a80aa1625a6f84ba6b177

See more details on using hashes here.

File details

Details for the file abulang-4.1.0-py3-none-any.whl.

File metadata

  • Download URL: abulang-4.1.0-py3-none-any.whl
  • Upload date:
  • Size: 55.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.5

File hashes

Hashes for abulang-4.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 27938c7aa0fcc1f33e8b9f3d27b5e03c49ebeb99da566623c990bf3f70be9ba6
MD5 0f923be87782835ec85a0ae64261668c
BLAKE2b-256 2ee5cc76cda67786f2ed94f276efdd45b2aac6041da0142f688729ee7b4c8609

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