Released lineage: Hindawi 15 August 2004. Same deliverable shape as Hindi गुरु/C, श्रेणी/C++, प्राथमिक/BASIC, यांत्रिक/ASM, शब्द/lex, व्याकरण/yacc, रोबोट/Logo.
Odia · व्याकरण · yacc
Shaili names the host, never the spoken language. Odia व्याकरण is still a yacc 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 Odia व्याकरण / 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/odia_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_nnu #samaawaeesha#samaawaeesha #ghoaxa_nnaa yyparse_dhaeera_prakaara _dwiguna %poor_nna %moa_hara _a_mka %baa_na_aee '+' '-' %baa_na_aee '*' '/' %baa_na_aee '%' %_daa_na_aee ghataa %% pa_mk_ti : pa_mk_ti _uk_ti '\n' { ma_likhoa("%g \n", $2); } | pa_mk_ti '\n' | /* _aipasilana yylex ; _uk_ti : _uk_ti '+' _uk_ti { $$ = $1 + $3; } | _uk_ti '-' _uk_ti { $$ = $1 - $3; } | _uk_ti '*' _uk_ti { $$ = $1 * $3; } | _uk_ti '/' _uk_ti { $$ = $1 / $3; } | _uk_ti '%' _uk_ti { $$ = (int)$1 % (int)$3; } | '(' _uk_ti ')' { $$ = $2; } | '-' _uk_ti %praa_thamika_taa ghataa { $$ = - $2; } | _a_mka ; %% poor_nnaa_mka yylex() _a_nnu poor_nnaa_mka cha; jaba_taka ( ( cha=char_loa() ) == ' ' ); _agara ( (cha == '.') || (_hai__a_mka(cha)) ) _a_nnu char_waapasa(cha, maanaka_niwaeesha); ma_poochhoa("%lf", &yylval); waapasa _a_mka; poor_nna waapasa cha; poor_nna poor_nnaa_mka yyerror() _a_nnu waapasa 0; poor_nna poor_nnaa_mka mukhya(poor_nnaa_mka _tasa, char *_tawa[] ) _a_nnu ma_likhoa("हिंदवी कैल्क्यूलेटर\n"); ma_likhoa("Copyright (C) 2003-2023 Abhishek Choudhary\n"); ma_likhoa("GNU GPL V2 license. NO WARRANTY.\n"); ma_likhoa("आप 0 से 9, +, -, *, / और () का प्रयोग कर सकते हैं।\n"); yyparse(); waapasa 0; poor_nna
Romenagri of this demo (ASCII-7 kernel)
%_a_nnu #samaawaeesha#samaawaeesha #ghoaxa_nnaa wyaaka_dhaeera_prakaara _dwiguna %poor_nna %moa_hara _a_mka %baa_na_aee '+' '-' %baa_na_aee '*' '/' %baa_na_aee '%' %_daa_na_aee ghataa %% pa_mk_ti : pa_mk_ti _uk_ti '\n' { ma_likhoa("%g \n", $2); } | pa_mk_ti '\n' | /* _aipasilana */ ; _uk_ti : _uk_ti '+' _uk_ti { $$ = $1 + $3; } | _uk_ti '-' _uk_ti { $$ = $1 - $3; } | _uk_ti '*' _uk_ti { $$ = $1 * $3; } | _uk_ti '/' _uk_ti { $$ = $1 / $3; } | _uk_ti '%' _uk_ti { $$ = (int)$1 % (int)$3; } | '(' _uk_ti ')' { $$ = $2; } | '-' _uk_ti %praa_thamika_taa ghataa { $$ = - $2; } | _a_mka ; %% poor_nnaa_mka sha_shab_da() _a_nnu poor_nnaa_mka cha; jaba_taka ( ( cha=char_loa() ) == ' ' ); _agara ( (cha == '.') || (_hai__a_mka(cha)) ) _a_nnu char_waapasa(cha, maanaka_niwaeesha); ma_poochhoa("%lf", &sha_ba_maana); waapasa _a_mka; poor_nna waapasa cha; poor_nna poor_nnaa_mka wyaaka__truti() _a_nnu waapasa 0; poor_nna poor_nnaa_mka mukhya(poor_nnaa_mka _tasa, char *_tawa[] ) _a_nnu ma_likhoa("हिंदवी कैल्क्यूलेटर\n"); ma_likhoa("Copyright (C) 2003-2023 Abhishek Choudhary\n"); ma_likhoa("GNU GPL V2 license. NO WARRANTY.\n"); ma_likhoa("आप 0 से 9, +, -, *, / और () का प्रयोग कर सकते हैं।\n"); wyaaka(); waapasa 0; poor_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 Odia yacc.
Original Colab chrome: nb.frozen.html. Retrieved 2004 tree: retrieved/legacy/Hindawi. Romenagri sources: retrieved/legacy/Romenagri.