Angdigo P1L — eksperimen bahasa pemrograman minimal
Project description
Angdigo P1L — versi 0.0.5
Angdigo P1L adalah eksperimen bahasa pemrograman kecil (interpreter minimal) dengan CLI angd.
Tujuan: prototipe sintaks yang mudah dibaca dan integrasi ringan dengan Python.
Instal:
pip install angdigo-p1l
Quickstart:
angd run example.adg # jalankan file Angdigo
angd repl # REPL interaktif
angd install <package> # pip install <package>
angd update version 0.0.5 # update pyproject & __init__ versi
angd version # tampilkan versi runtime
Fitur bahasa (yang sudah diimplementasikan):
=: assignment (contoh:a = 1 + 2)- Aritmetika:
+,-,*,/,**,% - Boolean:
true,false,false2,false#(dipetakan ke Python True/False) print <expr>: cetak hasil ekspresiprant <a> <b> ...: print multi-arg (memisah arg dengan spasi)function[#annotation] name(params)...end: definisi fungsi- contoh anotasi:
function#lang,function#install:{package}(jikainstall:{...}akan menjalankanpip installpada paket yang ditentukan saat definisi)
- contoh anotasi:
mark <name>: tandai fungsi/entitasfetch <url>/fecth <url>: fetch sederhana (saat ini hanya menampilkan aksi)import <module_or_file>: import modul Python atau jalankan file.adgfor <var> in <iter>:...end: loop (tutup block denganend)control:{key:target ...}: map kontrol ke variabel/fungsi
Catatan & batasan:
- Interpreter ini adalah prototype: ekspresi dievaluasi lewat AST terbatas.
- Beberapa kata kunci yang mungkin terlihat di bahasa (mis.
make,maker,module,main) masih direncanakan atau parsial.
Contoh program: lihat example.adg.
Kontribusi: buka issue atau fork repositori ini untuk mengembangkan fitur lebih lanjut.
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 angdigo_p1l-0.0.5.tar.gz.
File metadata
- Download URL: angdigo_p1l-0.0.5.tar.gz
- Upload date:
- Size: 5.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9611190efe2c24a5486387fdaf30cba3521c7fcca054b09aead1ef731eb4de53
|
|
| MD5 |
38ccb9c868c857031c6e97f7a162c872
|
|
| BLAKE2b-256 |
f2aa6bdca03b0261c8d4e5337d63459eb76d25cd1f339099f058d49765bf8816
|
File details
Details for the file angdigo_p1l-0.0.5-py3-none-any.whl.
File metadata
- Download URL: angdigo_p1l-0.0.5-py3-none-any.whl
- Upload date:
- Size: 6.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
32e23f1f0387e3499f3f6bbd03d85a2a7143c8c6fa4e4acab5c850c3fbca5842
|
|
| MD5 |
5344ad5ce1bd84f63c44ce478f608fef
|
|
| BLAKE2b-256 |
76a78cd8e3adfda61699561a27635e979c799d43f0421d1f6d7de13a02e2dae6
|