Released lineage: Hindawi 15 August 2004. Same deliverable shape as Hindi गुरु/C, श्रेणी/C++, प्राथमिक/BASIC, यांत्रिक/ASM, शब्द/lex, व्याकरण/yacc, रोबोट/Logo.
Kashmiri · व्याकरण · yacc
Shaili names the host, never the spoken language. Kashmiri व्याकरण is still a yacc 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
- This document is the standard of Kashmiri व्याकरण / yacc.
- 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)
10 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 |
|---|---|---|
| more details. | more details. | yylex |
| व्یاک_ت्رـوٹـی | wyaaka__truti | yyerror |
| \'("\\'" | \'("\\'" | yylex |
| \"("\\"" | \"("\\"" | yylex |
| ش_پںک्تـی | sha_pa_mk_ti | yylineno |
| ش_ب_مان | sha_ba_maana | yylval |
| ش_شب्د | sha_shab_da | yylex |
| ش_مالا | sha_maalaa | yytext |
| व्یاک | wyaaka | yyparse |
| */ | */ | yylex |
Demo program
Source file: ../demos/langs/kashmiri_wyaaka.uhin. This is the program, not a souvenir line.
<ش◌َـےلـی व्یاک>
%اَݨـو
#سماवےش <پ्رکار.س>
#سماवےش <مانکپن.س>
#گھـوشھݨا व्یاک_ڈھےر_پ्رکار د्वـیگـون
%پ◌ُـور्ݨ
%مـوھر ن٘ک
%باںایـ '+' '-'
%باںایـ '*' '/'
%باںایـ '%'
%داںایـ گھٹا
%%
پںک्تـی : پںک्تـی اُک्تـی '\n' { م_لـیکھـو("%g \n", $2); }
| پںک्تـی '\n'
| /* اَیـپسـیلن */
;
اُک्تـی : اُک्تـی '+' اُک्تـی { $$ = $1 + $3; }
| اُک्تـی '-' اُک्تـی { $$ = $1 - $3; }
| اُک्تـی '*' اُک्تـی { $$ = $1 * $3; }
| اُک्تـی '/' اُک्تـی { $$ = $1 / $3; }
| اُک्تـی '%' اُک्تـی { $$ = (int)$1 % (int)$3; }
| '(' اُک्تـی ')' { $$ = $2; }
| '-' اُک्تـی %پ्راتھمـیکتا گھٹا { $$ = - $2; }
| ن٘ک
;
%%
پ◌ُـور्ݨاںک ش_شب्د()
اَݨـو
پ◌ُـور्ݨاںک چ;
جبتک ( ( چ=اَک्شھر_لـو() ) == ' ' );
اَگر ( (چ == '.') || (ھ◌َـے_ن٘ک(چ)) )
اَݨـو
اَک्شھر_वاپس(چ, مانک_نـیवےش);
م_پ◌ُـوچھـو("%lf", &ش_ب_مان);
वاپس ن٘ک;
پ◌ُـور्ݨ
वاپس چ;
پ◌ُـور्ݨ
پ◌ُـور्ݨاںک व्یاک_ت्رـوٹـی()
اَݨـو
वاپس 0;
پ◌ُـور्ݨ
پ◌ُـور्ݨاںک مـوکھ्ی(پ◌ُـور्ݨاںک تس, اَک्شھر *تव[] )
اَݨـو
م_لـیکھـو("سلام — ہندوی\n");
م_لـیکھـو("Copyright (C) 2003-2023 Abhishek Choudhary\n");
م_لـیکھـو("GNU GPL V2 license. NO WARRANTY.\n");
م_لـیکھـو("आप 0 से 9, +, -, *, / और () का प्रयोग कर सकते हैं।\n");
व्یاک();
वاپس 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 yacc. The shaili pragma is removed. It is not a host token.
Host after compile
Shaili pragma stripped from host. Host is yacc.
%_a_nnau #samaawaeesha#samaawaeesha #ghauxa_nnaa yyparse_dhaeera_prakaara _dwayagauna %pa◌ُ^aur_nna %mawzara _a_mka %baa_aaya '+' '-' %baa_aaya '*' '/' %baa_aaya '%' %_daa_aaya ghataa %% pa_mk_taya : pa_mk_taya _uk_taya '\n' { ma_layakhau("%g \n", $2); } | pa_mk_taya '\n' | /* _ayapasayalana yylex ; _uk_taya : _uk_taya '+' _uk_taya { $$ = $1 + $3; } | _uk_taya '-' _uk_taya { $$ = $1 - $3; } | _uk_taya '*' _uk_taya { $$ = $1 * $3; } | _uk_taya '/' _uk_taya { $$ = $1 / $3; } | _uk_taya '%' _uk_taya { $$ = (int)$1 % (int)$3; } | '(' _uk_taya ')' { $$ = $2; } | '-' _uk_taya %praa_thamayaka_taa ghataa { $$ = - $2; } | _a_mka ; %% pa◌ُ^aur_nnaa_mka yylex() _a_nnau pa◌ُ^aur_nnaa_mka cha; jaba_taka ( ( cha=_akxara_lau() ) == ' ' ); _agara ( (cha == '.') || (_a_hh◌َ^aee__a_mka(cha)) ) _a_nnau _akxara_waapasa(cha, maanaka_nayawaeesha); ma_pa◌ُ^auchhau("%lf", &yylval); waapasa _a_mka; pa◌ُ^aur_nna waapasa cha; pa◌ُ^aur_nna pa◌ُ^aur_nnaa_mka yyparse__trautaya() _a_nnau waapasa 0; pa◌ُ^aur_nna pa◌ُ^aur_nnaa_mka maukhya(pa◌ُ^aur_nnaa_mka _tasa, _akxara *_tawa[] ) _a_nnau ma_layakhau("سلام — ہندوی\n"); ma_layakhau("Copyright (C) 2003-2023 Abhishek Choudhary\n"); ma_layakhau("GNU GPL V2 license. NO WARRANTY.\n"); ma_layakhau("आप 0 से 9, +, -, *, / और () का प्रयोग कर सकते हैं।\n"); yyparse(); waapasa 0; pa◌ُ^aur_nna
Romenagri of this demo (ASCII-7 kernel)
%_a_nnau #samaawaeesha#samaawaeesha #ghauxa_nnaa wyaaka_dhaeera_prakaara _dwayagauna %pa◌ُ^aur_nna %mawzara _a_mka %baa_aaya '+' '-' %baa_aaya '*' '/' %baa_aaya '%' %_daa_aaya ghataa %% pa_mk_taya : pa_mk_taya _uk_taya '\n' { ma_layakhau("%g \n", $2); } | pa_mk_taya '\n' | /* _ayapasayalana */ ; _uk_taya : _uk_taya '+' _uk_taya { $$ = $1 + $3; } | _uk_taya '-' _uk_taya { $$ = $1 - $3; } | _uk_taya '*' _uk_taya { $$ = $1 * $3; } | _uk_taya '/' _uk_taya { $$ = $1 / $3; } | _uk_taya '%' _uk_taya { $$ = (int)$1 % (int)$3; } | '(' _uk_taya ')' { $$ = $2; } | '-' _uk_taya %praa_thamayaka_taa ghataa { $$ = - $2; } | _a_mka ; %% pa◌ُ^aur_nnaa_mka sha_shab_da() _a_nnau pa◌ُ^aur_nnaa_mka cha; jaba_taka ( ( cha=_akxara_lau() ) == ' ' ); _agara ( (cha == '.') || (_a_hh◌َ^aee__a_mka(cha)) ) _a_nnau _akxara_waapasa(cha, maanaka_nayawaeesha); ma_pa◌ُ^auchhau("%lf", &sha_ba_maana); waapasa _a_mka; pa◌ُ^aur_nna waapasa cha; pa◌ُ^aur_nna pa◌ُ^aur_nnaa_mka wyaaka__trautaya() _a_nnau waapasa 0; pa◌ُ^aur_nna pa◌ُ^aur_nnaa_mka maukhya(pa◌ُ^aur_nnaa_mka _tasa, _akxara *_tawa[] ) _a_nnau ma_layakhau("سلام — ہندوی\n"); ma_layakhau("Copyright (C) 2003-2023 Abhishek Choudhary\n"); ma_layakhau("GNU GPL V2 license. NO WARRANTY.\n"); ma_layakhau("आप 0 से 9, +, -, *, / और () का प्रयोग कर सकते हैं।\n"); wyaaka(); waapasa 0; pa◌ُ^aur_nna
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 Kashmiri yacc.
Original Colab chrome: nb.frozen.html. Retrieved 2004 tree: retrieved/legacy/Hindawi. Romenagri sources: retrieved/legacy/Romenagri.