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:
-
Standalone (
web/abulang-ide-standalone.html)- Single HTML file
- Works offline
- Easy to share
-
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
- Fork the repository
- Create your feature branch
- Commit your changes
- Push to the branch
- Create a Pull Request
๐ License
See LICENSE file for details
๐ Links
- GitHub: https://github.com/AbuCodingAI/AbuLangIDLE
- Documentation: See
docs/folder - Web IDE:
web/abulang-ide-standalone.html
Made with โค๏ธ by Abu
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e8458495df7d94b4ca6818cd7625f377e238ab9ecb2f6ef561d669dbed1cb80e
|
|
| MD5 |
941f0c8693492cffa119eed335bea35c
|
|
| BLAKE2b-256 |
e98f2c25e4adc0e516d99f762b1f24106b837dc8b21a80aa1625a6f84ba6b177
|
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
27938c7aa0fcc1f33e8b9f3d27b5e03c49ebeb99da566623c990bf3f70be9ba6
|
|
| MD5 |
0f923be87782835ec85a0ae64261668c
|
|
| BLAKE2b-256 |
2ee5cc76cda67786f2ed94f276efdd45b2aac6041da0142f688729ee7b4c8609
|