Released lineage: Hindawi 15 August 2004. Same deliverable shape as Hindi गुरु/C, श्रेणी/C++, प्राथमिक/BASIC, यांत्रिक/ASM, शब्द/lex, व्याकरण/yacc, रोबोट/Logo.
Standard Farsi · गुरु · C
Shaili names the host, never the spoken language. Standard Farsi गुरु is still a C program.
Perso-Arabic does not round-trip. Lowest-layer debug (gdb, nm) will not reconstruct the original letters. Named, not hidden.
Open in notebook Original notebook Workbench Keyword stack Romenagri lab
This language, other hosts: C · C++ · BASIC · Assembly · lex · yacc · Logo
1–10 · clauses
- این سند استاندارد Standard Farsi गुरु / C است.
- این سند ترجمهٔ یک متن ایزوی انگلیسی نیست.
- جدول کلیدواژههای این پرونده هنجاری است.
- مسیر ترجمه: یونیکد، سپس ACII، سپس رومنگری (الگوریتم اصلی)، سپس لکْسِ شایلی، سپس میزبان.
- برنامهای نوشتهشده با این استاندارد را میتوان در هر استاندارد منتشرشدهٔ همان شایلی دید.
- دیدن هویت ترجمه را عوض نمیکند.
- شناسهها از راه واژهنامه نشان داده میشوند. ترجمه شناسههای اصلی را میگیرد.
- خلأهای جدول فهرست شدهاند. از حافظه پر نشدهاند.
- پروندههای گویش میتوانند ردیفهای آوایی، واژگانی یا نحوی بیفزایند. تا پذیرش جایگزین این جدول نمیشوند.
- اصلاحات به صورت CSV در deposits/csv و deposits/standards فرستاده میشوند.
- This document is the standard of Standard Farsi गुरु / C.
- This document is not a translation of an English-language ISO text.
- The keyword table in this file is normative.
- The compile path is Unicode, then ACII, then Romenagri (original algorithm), then the shaili lex, then the host.
- A program written to this standard may be viewed in any other published standard of the same shaili.
- Viewing does not change compilation identity.
- Identifiers are presented through a dictionary. Compilation uses the original identifiers.
- Gaps in the keyword table are listed. They are not filled from memory.
- Dialect files may add phonetic, word-choice, or syntax rows. They do not replace this table until accepted.
- Corrections are submitted as CSV in deposits/csv and deposits/standards.
Keyword table (normative)
29 rows. Hindi C bar is 29 unique-C keys. Other hosts use the 2004 retrieved lex where it exists. Romenagri is the original Unicode → ACII → Romenagri algorithm, not ISO 15919.
| native | Romenagri | host |
|---|---|---|
| اگر | agar | if |
| وگرنه | vagarnah | else |
| تازمانیکه | taazamaaniikah | while |
| انجامبده | anjaamabdah | do |
| برای | baraaya | for |
| بشکن | bishkan | break |
| ادامه | adaamah | continue |
| انتخاب | intikhaaba | switch |
| حالت | haalata | case |
| پیشفرض | piishfarza | default |
| بازگرد | baazgard | return |
| ثابت | saabita | const |
| صحیح | sahiiha | int |
| اعشاری | aeshaarii | float |
| دوگانه | daugaanah | double |
| نویسه | naviisah | char |
| تهی | tahii | void |
| تابع | taabe | void |
| رده | radah | class |
| جدید | jadiida | new |
| عمومی | umuumii | public |
| خصوصی | khusuusii | private |
| ایستا | iistaa | static |
| مجازی | majaazii | virtual |
| هنگامیکه | hanagaamiikah | case |
| ساختار | saakhtaara | struct |
| شامل | shaamila | include |
| بخوان | bikhaan | scanf |
| بنویس | binaviis | printf |
Demo program
Source file: ../demos/langs/persian_guru.uhin. This is the program, not a souvenir line.
<ش◌َـےلـی گـورـو> #شاملصحیح main() { نویسه a[80]; صحیح k; بنویس("نام شما چیست؟\n"); بخوان("%s", a); بنویس("سلام %s.\n", a); برای(k=1; k<=10; k++) بنویس("%d\n", k); بازگرد 0; }
Compile path
- Unicode source (this page).
- Flatten to the Devanagari hub (Brahmi). Perso-Arabic applies the language table first, then urdu_map, and is lossy.
- Original Romenagri: Unicode → ACII (
unicode_hin) → Romenagri (acii_chrt/ retrievedlegacy/Romenagri/acii2rmn.lex). Binding:engine/romenagri-orig.js+canonical_basis.json. - Shaili lex on that ASCII-7 kernel.
- Host C. The shaili pragma is removed. It is not a host token.
Host after compile
Shaili pragma stripped from host. Host is C.
#includeint main() { char a[80]; int k; printf("نام شما چیست؟\n"); scanf("%s", a); printf("سلام %s.\n", a); for(k=1; k<=10; k++) printf("%d\n", k); return 0; }
Romenagri of this demo (ASCII-7 kernel)
#includeint main() { char a[80]; int k; printf("نام شما چیست؟\n"); scanf("%s", a); printf("سلام %s.\n", a); for(k=1; k<=10; k++) printf("%d\n", k); return 0; }
The seven hosts on every language
C · C++ · BASIC · Assembly · lex · yacc · Logo
Hindi 2004 bar
A complete stack is the Hindi 15 August 2004 deliverable: a shaili, a keyword table, a program that compiles, a host with the pragma gone, and the original Romenagri path. This page is that shape for Standard Farsi C.
Original Colab chrome: nb.frozen.html. Retrieved 2004 tree: retrieved/legacy/Hindawi. Romenagri sources: retrieved/legacy/Romenagri.