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.2.tar.gz (4.9 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.2-py3-none-any.whl (5.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: pipton-1.0.2.tar.gz
  • Upload date:
  • Size: 4.9 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.2.tar.gz
Algorithm Hash digest
SHA256 ad3543108bae44541ed29485adba0ff7c0fb6ca8e386d578e35b9f1569e05d2e
MD5 83e6040534c339b5dd3ec26b14c87fd1
BLAKE2b-256 f80b2156969a7236c654489579abb13c8070d3594626c96c15d8170dc60b6056

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pipton-1.0.2-py3-none-any.whl
  • Upload date:
  • Size: 5.9 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.2-py3-none-any.whl
Algorithm Hash digest
SHA256 59b58951bd5c2bf860a6a496fa88d018382b1f3e43d46b5335ee1e60b3d132ef
MD5 6002a1fd99c7e19421525d04bf4d535a
BLAKE2b-256 8ae2e3c6170ce5d7a9ba7f619b99d9aaa1d080757d3f93428103571247c06fe1

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