Released lineage: Hindawi 15 August 2004. Same deliverable shape as Hindi गुरु/C, श्रेणी/C++, प्राथमिक/BASIC, यांत्रिक/ASM, शब्द/lex, व्याकरण/yacc, रोबोट/Logo.

Kannada · व्याकरण · yacc

Shaili names the host, never the spoken language. Kannada व्याकरण 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

  1. This document is the standard of Kannada व्याकरण / yacc.
  2. This document is not a translation of an English-language ISO text.
  3. The keyword table in this file is normative.
  4. The compile path is Unicode, then ACII, then Romenagri (original algorithm), then the shaili lex, then the host.
  5. A program written to this standard may be viewed in any other published standard of the same shaili.
  6. Viewing does not change compilation identity.
  7. Identifiers are presented through a dictionary. Compilation uses the original identifiers.
  8. Gaps in the keyword table are listed. They are not filled from memory.
  9. Dialect files may add phonetic, word-choice, or syntax rows. They do not replace this table until accepted.
  10. 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.

nativeRomenagrihost
more details.more details.yylex
ವ್ಯಾಕ_ತ್ರುಟಿwyaaka__trutiyyerror
\'("\\'"\'("\\'"yylex
\"("\\""\"("\\""yylex
ಶ_ಪಂಕ್ತಿsha_pa_mk_tiyylineno
ಶ_ಬ_ಮಾನsha_ba_maanayylval
ಶ_ಶಬ್ದsha_shab_dayylex
ಶ_ಮಾಲಾsha_maalaayytext
ವ್ಯಾಕwyaakayyparse
*/*/yylex

Demo program

Source file: ../demos/langs/kannada_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

  1. Unicode source (this page).
  2. Flatten to the Devanagari hub (Brahmi). Perso-Arabic applies the language table first, then urdu_map, and is lossy.
  3. Original Romenagri: Unicode → ACII (unicode_hin) → Romenagri (acii_chrt / retrieved legacy/Romenagri/acii2rmn.lex). Binding: engine/romenagri-orig.js + canonical_basis.json.
  4. Shaili lex on that ASCII-7 kernel.
  5. 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
       ;
%%
 
int yylex()
_a_nnu
   int 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
 
int yyerror()
_a_nnu
   waapasa 0;
poor_nna
 
int mukhya(int _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
       ;
%%
 
int sha_shab_da()
_a_nnu
   int 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
 
int wyaaka__truti()
_a_nnu
   waapasa 0;
poor_nna
 
int mukhya(int _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 Kannada yacc.

Original Colab chrome: nb.frozen.html. Retrieved 2004 tree: retrieved/legacy/Hindawi. Romenagri sources: retrieved/legacy/Romenagri.