Released lineage: Hindawi 15 August 2004. Same deliverable shape as Hindi गुरु/C, श्रेणी/C++, प्राथमिक/BASIC, यांत्रिक/ASM, शब्द/lex, व्याकरण/yacc, रोबोट/Logo.
Punjabi (Gurmukhi) · गुरु · C
Shaili names the host, never the spoken language. Punjabi (Gurmukhi) गुरु is still a C program.
Open in notebook Original notebook Workbench Keyword stack Romenagri lab
This language, other hosts: C · C++ · BASIC · Assembly · lex · yacc · Logo
1–10 · clauses
- This document is the standard of Punjabi (Gurmukhi) गुरु / 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 |
|---|---|---|
| ਜੇ | jee | if |
| ਨਹੀਂਤਾਂ | nahii_ntaa_n | else |
| ਜਦਤੱਕ | jadatakka | while |
| ਕਰੋ | karau | do |
| ਲਈ | laii | for |
| ਰੋਕੋ | raukau | break |
| ਜਾਰੀ | jaarii | continue |
| ਚੋਣ | cau_na | switch |
| ਹਾਲਤ | haalata | case |
| ਮੂਲ | muula | default |
| ਵਾਪਸ | vaapasa | return |
| ਅਚਲ | acala | const |
| ਪੂਰਨਅੰਕ | puurana_nka | int |
| ਦਸ਼ਮਲਵ | dashamalava | float |
| ਦੁੱਗਣਾ | duggsa_naa | double |
| ਅੱਖਰ | akkhara | char |
| ਖਾਲੀ | khaalii | void |
| ਕਾਰਜ | kaaraja | void |
| ਵਰਗ | varga | class |
| ਨਵਾਂ | navaa_n | new |
| ਜਨਤਕ | janataka | public |
| ਨਿਜੀ | nijii | private |
| ਸਥਿਰ | sathira | static |
| ਆਭਾਸੀ | aabhaasii | virtual |
| ਜਦੋਂ | jadau_n | case |
| ਬਣਤਰ | ba_natara | struct |
| ਸ਼ਾਮਲ | shaamala | include |
| ਪੜ੍ਹੋ | pa_rhau | scanf |
| ਲਿਖੋ | likhau | printf |
Demo program
Source file: ../demos/langs/punjabi_guru.uhin. This is the program, not a souvenir line.
<ਸ਼ੈਲੀ ਗੁਰੁ>
#ਸਮਾਵੇਸ਼ <ਮਾਨਕਪਨ.ਸ>
ਪੂਰ੍ਣਾਂਕ ਮੁਖ੍ਯ()
{
ਅਕ੍षਰ ਅ[੮੦];
ਪੂਰ੍ਣਾਂਕ ਕ;
ਮ_ਲਿਖੋ("आपका नाम क्या है?\n");
ਮ_ਪੂਛੋ("%s",ਅ);
ਮ_ਲਿਖੋ("नमस्ते %s.\n",ਅ);
ਕ੍ਰਮ(ਕ=1; ਕ<=10; ਕ++)
ਮ_ਲਿਖੋ("%d\n",ਕ);
ਮ_ਪੂਛੋ("%s",ਅ);
ਵਾਪਸ 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[८०]; int ka; ma_printf("आपका नाम क्या है?\n"); scanf("%s",_a); ma_printf("नमस्ते %s.\n",_a); for(ka=1; ka<=10; ka++) ma_printf("%d\n",ka); scanf("%s",_a); return 0; }
Romenagri of this demo (ASCII-7 kernel)
#samaawaeeshapoor_nnaa_mka mukhya() { _akxara _a[८०]; poor_nnaa_mka ka; ma_printf("आपका नाम क्या है?\n"); ma_poochhoa("%s",_a); ma_printf("नमस्ते %s.\n",_a); krama(ka=1; ka<=10; ka++) ma_printf("%d\n",ka); ma_poochhoa("%s",_a); 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 Punjabi (Gurmukhi) C.
Original Colab chrome: nb.frozen.html. Retrieved 2004 tree: retrieved/legacy/Hindawi. Romenagri sources: retrieved/legacy/Romenagri.