Skip to main content

A natural-language programming language that compiles to Python

Reason this release was yanked:

wrong number

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-1.1.0.tar.gz (47.2 kB view details)

Uploaded Source

Built Distribution

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

abulang-1.1.0-py3-none-any.whl (54.4 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for abulang-1.1.0.tar.gz
Algorithm Hash digest
SHA256 5ba6c7b1c6e6577797c2987a121383fbb2056813ab9db21844751e3ba0adb060
MD5 daab893901dae1ab78a94f68b2529f62
BLAKE2b-256 76ab353241d3ac1c8dc5aceb96f35dce276b8a7a29ea6bdce711acccce6a6332

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for abulang-1.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 8c733afa10347cfc14c339496b782664888472be078b44c5648759ce0ae10efd
MD5 1a1f3bf79afe2a44fb471c04a0cc9e51
BLAKE2b-256 2c3efba8a2190beea41f04e9fb8d6137e6ccd0e5933eb6ec44a937f18506c23f

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