Skip to main content

PiptonLang - Documentation / مستندات زبان پیپتون


🇮🇷 مستندات زبان برنامه‌نویسی پیپتون

مقدمه:

Pipton یک زبان برنامه‌نویسی تفسیری (Interpreter Based) است که با استفاده از پایتون ساخته شده و سینتکسی ساده، روان، و شبیه به زبان‌های سطح بالا دارد. این زبان با هدف آموزش آسان، توسعه سریع، و کدنویسی شخصی‌سازی‌شده طراحی شده است.


🎯 اهداف زبان:

  • ساده‌سازی آموزش برنامه‌نویسی برای مبتدیان
  • نزدیک بودن سینتکس به تفکر منطقی فارسی و انگلیسی
  • اجرای سریع و آسان کدها در محیط ترمینال
  • توسعه‌پذیری بالا با قابلیت افزودن ماژول‌ها

📌 ساختار دستورات زبان Pipton:

var name = entry("نام شما: ")
print>>"سلام " + name

var x = 10
while x < 13 {
    print>>x
    x = x + 1
}

for i in range(0, 3) {
    print>>i
}

fun greet(n) {
    print>>"سلام " + n
}
greet("پایتون")

class A {
    def __init__(self) {
        print>>"کلاس مقداردهی شد"
    }
}

import time
print>>time.ctime()

🧠 دستورها و قواعد:

1. تعریف متغیر:

var x = 5

2. حلقه‌ها:

while x < 10 {
    print>>x
    x = x + 1
}

for i in range(0, 5) {
    print>>i
}

3. تابع:

fun hello(name) {
    print>>"Hello " + name
}
hello("Amir")

4. کلاس:

class A {
    def __init__(self) {
        print>>"Init"
    }
}

5. دریافت ورودی:

var name = entry("Your name: ")

6. چاپ خروجی:

print>>"Welcome to Pipton!"

7. وارد کردن کتابخانه‌های پایتون:

import math
print>>math.sqrt(25)

🇬🇧 PiptonLang Documentation

Introduction:

Pipton is a lightweight interpreted language designed for simplicity and readability. It is powered by Python and supports a custom Persian-English hybrid syntax to make it intuitive for Persian speakers.


🎯 Language Goals:

  • Beginner-friendly structure
  • Customizable syntax
  • Support for Python libraries
  • Terminal-based execution

📌 Syntax Highlights:

var name = entry("Your name: ")
print>>"Hello " + name

var x = 10
while x < 13 {
    print>>x
    x = x + 1
}

for i in range(0, 3) {
    print>>i
}

fun greet(n) {
    print>>"Hi " + n
}
greet("Pipton")

class A {
    def __init__(self) {
        print>>"Class initialized"
    }
}

import time
print>>time.ctime()

🔧 How to Use Pipton:

  1. Install locally:
pip install .
  1. Run a file:
pipton examples/test.pipton

📂 اجرای فایل‌ها

برای اجرای فایل‌های زبان Pipton با پسوند .piton یا .pipton از دستورات زیر استفاده کنید:

python -m pipton.run_pipton test.piton

Metadata

Release files for pipton 2.0.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pipton 2.0.0
File Size Uploaded Provenance Actions
pipton-2.0.0.tar.gz 4.8 kB Without provenance Details for pipton-2.0.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for pipton 2.0.0
File Interpreter ABI Platform Actions
pipton-2.0.0-py3-none-any.whl Python 3 none any Details for pipton-2.0.0-py3-none-any.whl

Total release size: 10.7 kB

Release files / pipton-2.0.0.tar.gz

Download URL pipton-2.0.0.tar.gz
Size 4.8 kB
Tags Source
SHA-256 checksum
How to use checksums
ec672b57d382dd47371334b4bb2b6a13f12e78c4df86a90e98399ed5dc76137e
BLAKE2b-256 checksum
How to use checksums
e3588f2651572ba24c9baae309302788e60412c0cde79776b76f7ae069a43d81
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.11.9

Release files / pipton-2.0.0-py3-none-any.whl

Download URL pipton-2.0.0-py3-none-any.whl
Size 5.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
24e5bc63a070a9820c23b859ba591821e3120604270bbe13dbbb09e615c3cadd
BLAKE2b-256 checksum
How to use checksums
f91d00ced0d2efcfa2b60f3785815e7184e0a3d98b2d1ada3d34826061156c6c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.11.9

Security for pipton 2.0.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page