Skip to main content

A custom language with Persian-flavored syntax and full Python power

Project description

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
}

fan 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. تابع:

fan 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
}

fan 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.kod

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

pipton-1.0.1.tar.gz (3.3 kB view details)

Uploaded Source

Built Distribution

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

pipton-1.0.1-py3-none-any.whl (3.5 kB view details)

Uploaded Python 3

File details

Details for the file pipton-1.0.1.tar.gz.

File metadata

  • Download URL: pipton-1.0.1.tar.gz
  • Upload date:
  • Size: 3.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.11.9

File hashes

Hashes for pipton-1.0.1.tar.gz
Algorithm Hash digest
SHA256 9b1c8b5febb62336abe752f8be0bee10a3102518c7c8f9b55f90a27c4e437394
MD5 3f666d0ee480fffd3db13f1e652ad1ba
BLAKE2b-256 15f3637e35f2c7342846526bf242a7013e9934067e2197df4f66e10a92147adc

See more details on using hashes here.

File details

Details for the file pipton-1.0.1-py3-none-any.whl.

File metadata

  • Download URL: pipton-1.0.1-py3-none-any.whl
  • Upload date:
  • Size: 3.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.11.9

File hashes

Hashes for pipton-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 1bf60d1860073dda2830c0c5aa1e9d033d175d9cdc0ace59251e34a84916733e
MD5 956e249ca587ac572e639e48b308e5a0
BLAKE2b-256 0336459dcb61c7ce4703b13e27e89de00689668c0713727ee176395455481496

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