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
}

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

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: pipton-1.2.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.2.2.tar.gz
Algorithm Hash digest
SHA256 69d1ca5f609a196c239437a66bbd7037ba2d4f0a0c5ae103d56ea969c1f066c9
MD5 01fd300282e8d9d5f0af77145975f67c
BLAKE2b-256 89fd1984f01766774e281661022dd4d435e6d671ac0d1a65c931bacd2dd41b21

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pipton-1.2.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.2.2-py3-none-any.whl
Algorithm Hash digest
SHA256 9f662f3ac939719cc2f7c87ec9e40a3dace67cd8c760d4a15a41844b539b1d26
MD5 1f63b63c190b4f0024f16dca8fa1c10e
BLAKE2b-256 00aad19a6a12a959bd933b4ca25f45f8dd6a5e8a17e472170732ce3596ad861a

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