/* * yaccsrc.cc * * Copyright (C) 1995, 1996, 1997, 1997, 1998, 1999, 2000, 2001, 2002 Kenichi Kourai * Copyright (C) 1999, 2000, 2001, 2002 Luiz Blanes * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with blwm; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA * */ #ifndef lint static char yysccsid[] = "@(#)yaccpar 1.9 (Berkeley) 02/21/93"; #endif #define YYBYACC 1 #define YYMAJOR 1 #define YYMINOR 9 #define yyclearin (yychar=(-1)) #define yyerrok (yyerrflag=0) #define YYRECOVERING (yyerrflag!=0) #define YYPREFIX "yy" #line 23 "yaccsrc.yy" #ifdef HAVE_CONFIG_H #include "config.h" #endif #include #include #include #include "main.h" #include "blwm.h" #include "parse.h" #include "util.h" extern int line; extern char filename[256]; extern int yylex(); extern void yyerror(char* error); #define YYDEBUG 0 #line 42 "yaccsrc.yy" typedef union { char* str; MenuElem* mItem; AttrStream* aStream; unsigned int modifier; } YYSTYPE; #line 37 "y.tab.c" #define VARIABLE 257 #define MENU 258 #define SHORTCUT 259 #define APP 260 #define KEY 261 #define IND 262 #define EXITDLG 263 #define STARTUP 264 #define ACC 265 #define VAR 266 #define STRING 267 #define FUNC 268 #define PLUS 269 #define MINUS 270 #define YYERRCODE 256 short yylhs[] = { -1, 0, 0, 2, 2, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 19, 19, 21, 21, 10, 10, 9, 9, 9, 12, 12, 11, 11, 11, 11, 11, 11, 11, 11, 20, 20, 22, 15, 15, 15, 15, 14, 14, 13, 13, 13, 17, 17, 18, 18, 16, 16, 4, 4, 3, 6, 6, 5, 8, 8, 7, }; short yylen[] = { 2, 1, 0, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 3, 3, 2, 1, 3, 3, 5, 2, 1, 6, 4, 5, 3, 6, 4, 5, 3, 2, 1, 2, 3, 1, 5, 3, 2, 1, 3, 3, 2, 2, 1, 3, 3, 3, 1, 2, 1, 2, 2, 1, 1, 2, 1, 3, }; short yydefred[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 5, 0, 0, 0, 9, 0, 0, 11, 0, 7, 0, 0, 13, 0, 0, 0, 15, 0, 0, 17, 65, 0, 19, 0, 0, 21, 3, 0, 23, 0, 27, 0, 32, 0, 44, 42, 0, 0, 54, 62, 60, 0, 49, 63, 0, 66, 26, 25, 29, 30, 0, 0, 0, 0, 0, 0, 56, 57, 52, 51, 68, 0, 0, 0, 0, 0, 0, 45, 58, 31, 0, 36, 0, 40, 0, 34, 38, 47, }; short yydgoto[] = { 10, 11, 12, 29, 30, 35, 36, 38, 39, 17, 18, 20, 21, 32, 33, 48, 51, 26, 27, 14, 23, 15, 24, }; short yysindex[] = { -251, -243, -242, -232, -231, -228, -227, -225, -224, -223, 0, -251, 0, -45, 0, -243, -222, -242, 0, -221, -232, 0, -219, 0, -231, -217, 0, -228, -216, -227, 0, -215, -225, 0, 0, -224, 0, -213, -223, 0, 0, -246, 0, -250, 0, -240, 0, -39, 0, 0, -85, -238, 0, 0, 0, -236, 0, 0, -212, 0, 0, 0, 0, 0, -242, -44, -42, -211, -219, -217, 0, 0, 0, 0, 0, -210, -2, -209, 11, -208, 17, 0, 0, 0, -204, 0, -203, 0, -219, 0, 0, 0, }; short yyrindex[] = { 64, 91, 100, 109, 118, 127, 136, 145, 154, 163, 0, 65, 0, 0, 0, 172, 0, 1, 0, 0, 181, 0, 0, 0, 190, 0, 0, 199, 0, 208, 0, 0, 217, 0, 0, 226, 0, 0, 235, 0, 0, 0, 0, 0, 0, 0, 0, 15, 0, 0, -234, 0, 0, 0, 0, 81, 0, 0, 0, 0, 0, 0, 0, 0, 0, 26, 37, 0, 0, 0, 0, 0, 0, 0, 0, 0, 48, 0, 59, 0, 70, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, }; short yygindex[] = { 0, 0, 55, 0, 38, 0, 33, 0, 31, 0, -14, 0, 51, 0, 40, -64, 4, 47, 0, 60, 52, 0, 0, }; #define YYTABLESIZE 500 short yytable[] = { 77, 28, 79, 44, 81, 68, 1, 2, 3, 4, 5, 6, 7, 8, 9, 46, 41, 62, 63, 64, 60, 61, 67, 13, 91, 16, 37, 65, 66, 70, 71, 72, 73, 59, 59, 19, 22, 41, 25, 69, 28, 31, 84, 34, 37, 43, 45, 47, 35, 50, 75, 53, 55, 58, 74, 86, 80, 85, 87, 39, 83, 88, 89, 90, 2, 4, 40, 54, 57, 59, 48, 46, 56, 82, 52, 42, 49, 0, 0, 0, 0, 53, 0, 0, 0, 0, 0, 0, 0, 0, 0, 6, 0, 0, 0, 0, 0, 0, 0, 0, 10, 0, 0, 0, 0, 0, 0, 0, 0, 12, 0, 0, 0, 0, 0, 0, 0, 0, 8, 0, 0, 0, 0, 0, 0, 0, 0, 14, 0, 0, 0, 0, 0, 0, 0, 0, 16, 0, 0, 0, 0, 0, 0, 0, 0, 18, 0, 0, 0, 0, 0, 0, 0, 0, 20, 0, 0, 0, 0, 0, 0, 0, 0, 22, 0, 0, 0, 0, 0, 0, 0, 0, 24, 0, 0, 0, 0, 0, 0, 0, 0, 33, 0, 0, 0, 0, 0, 0, 0, 0, 43, 0, 0, 0, 0, 0, 0, 0, 0, 55, 0, 0, 0, 0, 0, 0, 0, 0, 61, 0, 0, 0, 0, 0, 0, 0, 0, 50, 0, 0, 0, 0, 76, 0, 78, 0, 64, 0, 0, 0, 0, 0, 0, 0, 0, 67, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 28, 28, 28, 28, 28, 28, 28, 28, 28, 0, 0, 0, 0, 28, 46, 46, 46, 46, 46, 46, 46, 46, 46, 0, 46, 37, 37, 37, 37, 37, 37, 37, 37, 37, 0, 37, 41, 41, 41, 41, 41, 41, 41, 41, 41, 0, 41, 35, 35, 35, 35, 35, 35, 35, 35, 35, 0, 35, 39, 39, 39, 39, 39, 39, 39, 39, 39, 0, 39, 48, 48, 48, 48, 48, 48, 48, 48, 48, 0, 48, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 6, 6, 6, 6, 6, 6, 6, 6, 6, 10, 10, 10, 10, 10, 10, 10, 10, 10, 12, 12, 12, 12, 12, 12, 12, 12, 12, 8, 8, 8, 8, 8, 8, 8, 8, 8, 14, 14, 14, 14, 14, 14, 14, 14, 14, 16, 16, 16, 16, 16, 16, 16, 16, 16, 18, 18, 18, 18, 18, 18, 18, 18, 18, 20, 20, 20, 20, 20, 20, 20, 20, 20, 22, 22, 22, 22, 22, 22, 22, 22, 22, 24, 24, 24, 24, 24, 24, 24, 24, 24, 33, 33, 33, 33, 33, 33, 33, 33, 33, 43, 43, 43, 43, 43, 43, 43, 43, 43, 55, 55, 55, 55, 55, 55, 55, 55, 55, 61, 61, 61, 61, 61, 61, 61, 61, 61, 50, 50, 50, 50, 50, 50, 50, 50, 50, 64, 64, 64, 64, 64, 64, 64, 64, 64, 67, 67, 67, 67, 67, 67, 67, 67, 67, }; short yycheck[] = { 44, 0, 44, 17, 68, 44, 257, 258, 259, 260, 261, 262, 263, 264, 265, 0, 61, 267, 268, 269, 266, 267, 61, 266, 88, 267, 0, 267, 268, 267, 268, 267, 268, 267, 268, 267, 267, 0, 266, 124, 267, 266, 44, 267, 267, 267, 267, 266, 0, 266, 64, 267, 267, 266, 266, 44, 267, 266, 266, 0, 270, 44, 266, 266, 0, 0, 11, 29, 35, 38, 0, 20, 32, 69, 27, 15, 24, -1, -1, -1, -1, 0, -1, -1, -1, -1, -1, -1, -1, -1, -1, 0, -1, -1, -1, -1, -1, -1, -1, -1, 0, -1, -1, -1, -1, -1, -1, -1, -1, 0, -1, -1, -1, -1, -1, -1, -1, -1, 0, -1, -1, -1, -1, -1, -1, -1, -1, 0, -1, -1, -1, -1, -1, -1, -1, -1, 0, -1, -1, -1, -1, -1, -1, -1, -1, 0, -1, -1, -1, -1, -1, -1, -1, -1, 0, -1, -1, -1, -1, -1, -1, -1, -1, 0, -1, -1, -1, -1, -1, -1, -1, -1, 0, -1, -1, -1, -1, -1, -1, -1, -1, 0, -1, -1, -1, -1, -1, -1, -1, -1, 0, -1, -1, -1, -1, -1, -1, -1, -1, 0, -1, -1, -1, -1, -1, -1, -1, -1, 0, -1, -1, -1, -1, -1, -1, -1, -1, 0, -1, -1, -1, -1, 266, -1, 266, -1, 0, -1, -1, -1, -1, -1, -1, -1, -1, 0, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 257, 258, 259, 260, 261, 262, 263, 264, 265, -1, -1, -1, -1, 270, 257, 258, 259, 260, 261, 262, 263, 264, 265, -1, 267, 257, 258, 259, 260, 261, 262, 263, 264, 265, -1, 267, 257, 258, 259, 260, 261, 262, 263, 264, 265, -1, 267, 257, 258, 259, 260, 261, 262, 263, 264, 265, -1, 267, 257, 258, 259, 260, 261, 262, 263, 264, 265, -1, 267, 257, 258, 259, 260, 261, 262, 263, 264, 265, -1, 267, 257, 258, 259, 260, 261, 262, 263, 264, 265, 266, 257, 258, 259, 260, 261, 262, 263, 264, 265, 257, 258, 259, 260, 261, 262, 263, 264, 265, 257, 258, 259, 260, 261, 262, 263, 264, 265, 257, 258, 259, 260, 261, 262, 263, 264, 265, 257, 258, 259, 260, 261, 262, 263, 264, 265, 257, 258, 259, 260, 261, 262, 263, 264, 265, 257, 258, 259, 260, 261, 262, 263, 264, 265, 257, 258, 259, 260, 261, 262, 263, 264, 265, 257, 258, 259, 260, 261, 262, 263, 264, 265, 257, 258, 259, 260, 261, 262, 263, 264, 265, 257, 258, 259, 260, 261, 262, 263, 264, 265, 257, 258, 259, 260, 261, 262, 263, 264, 265, 257, 258, 259, 260, 261, 262, 263, 264, 265, 257, 258, 259, 260, 261, 262, 263, 264, 265, 257, 258, 259, 260, 261, 262, 263, 264, 265, 257, 258, 259, 260, 261, 262, 263, 264, 265, 257, 258, 259, 260, 261, 262, 263, 264, 265, }; #define YYFINAL 10 #ifndef YYDEBUG #define YYDEBUG 0 #endif #define YYMAXTOKEN 270 #if YYDEBUG char *yyname[] = { "end-of-file",0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0,"','",0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,"'='",0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0,0,0,0,0,"'|'",0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,"VARIABLE","MENU", "SHORTCUT","APP","KEY","IND","EXITDLG","STARTUP","ACC","VAR","STRING","FUNC", "PLUS","MINUS", }; char *yyrule[] = { "$accept : blwmrc", "blwmrc : sessions", "blwmrc :", "sessions : session sessions", "sessions : session", "session : VARIABLE vars", "session : VARIABLE", "session : APP apps", "session : APP", "session : MENU items", "session : MENU", "session : SHORTCUT scs", "session : SHORTCUT", "session : KEY keys", "session : KEY", "session : IND inds", "session : IND", "session : EXITDLG dlgitems", "session : EXITDLG", "session : STARTUP cmds", "session : STARTUP", "session : ACC accs", "session : ACC", "vars : var vars", "vars : var", "var : VAR '=' STRING", "var : VAR '=' VAR", "items : item items", "items : item", "item : STRING STRING STRING", "item : STRING STRING FUNC", "item : STRING STRING PLUS items MINUS", "scs : sc scs", "scs : sc", "sc : STRING STRING STRING VAR ',' VAR", "sc : STRING STRING STRING VAR", "sc : STRING STRING STRING ',' VAR", "sc : STRING STRING STRING", "sc : STRING STRING FUNC VAR ',' VAR", "sc : STRING STRING FUNC VAR", "sc : STRING STRING FUNC ',' VAR", "sc : STRING STRING FUNC", "apps : app apps", "apps : app", "app : STRING stream", "stream : VAR ',' stream", "stream : VAR", "stream : VAR '=' STRING ',' stream", "stream : VAR '=' STRING", "dlgitems : dlgitem dlgitems", "dlgitems : dlgitem", "dlgitem : VAR STRING FUNC", "dlgitem : VAR STRING STRING", "dlgitem : VAR STRING", "keys : key keys", "keys : key", "key : VAR mod STRING", "key : VAR mod FUNC", "mod : VAR '|' mod", "mod : VAR", "inds : ind inds", "inds : ind", "ind : STRING STRING", "cmds : cmd cmds", "cmds : cmd", "cmd : STRING", "accs : acc accs", "accs : acc", "acc : STRING VAR VAR", }; #endif #ifdef YYSTACKSIZE #undef YYMAXDEPTH #define YYMAXDEPTH YYSTACKSIZE #else #ifdef YYMAXDEPTH #define YYSTACKSIZE YYMAXDEPTH #else #define YYSTACKSIZE 500 #define YYMAXDEPTH 500 #endif #endif int yydebug; int yynerrs; int yyerrflag; int yychar; short *yyssp; YYSTYPE *yyvsp; YYSTYPE yyval; YYSTYPE yylval; short yyss[YYSTACKSIZE]; YYSTYPE yyvs[YYSTACKSIZE]; #define yystacksize YYSTACKSIZE #line 183 "yaccsrc.yy" void yyerror(char* error) { BlwmError("%s: %d: %s", filename, line, error); BlwmError("Reiniciando com a minima configuracao..."); // restart without parsing any configuration files RestartBlwm(True); } #line 342 "y.tab.c" #define YYABORT goto yyabort #define YYREJECT goto yyabort #define YYACCEPT goto yyaccept #define YYERROR goto yyerrlab int yyparse() { register int yym, yyn, yystate; #if YYDEBUG register char *yys; extern char *getenv(); if (yys = getenv("YYDEBUG")) { yyn = *yys; if (yyn >= '0' && yyn <= '9') yydebug = yyn - '0'; } #endif yynerrs = 0; yyerrflag = 0; yychar = (-1); yyssp = yyss; yyvsp = yyvs; *yyssp = yystate = 0; yyloop: if (yyn = yydefred[yystate]) goto yyreduce; if (yychar < 0) { if ((yychar = yylex()) < 0) yychar = 0; #if YYDEBUG if (yydebug) { yys = 0; if (yychar <= YYMAXTOKEN) yys = yyname[yychar]; if (!yys) yys = "illegal-symbol"; printf("%sdebug: state %d, reading %d (%s)\n", YYPREFIX, yystate, yychar, yys); } #endif } if ((yyn = yysindex[yystate]) && (yyn += yychar) >= 0 && yyn <= YYTABLESIZE && yycheck[yyn] == yychar) { #if YYDEBUG if (yydebug) printf("%sdebug: state %d, shifting to state %d\n", YYPREFIX, yystate, yytable[yyn]); #endif if (yyssp >= yyss + yystacksize - 1) { goto yyoverflow; } *++yyssp = yystate = yytable[yyn]; *++yyvsp = yylval; yychar = (-1); if (yyerrflag > 0) --yyerrflag; goto yyloop; } if ((yyn = yyrindex[yystate]) && (yyn += yychar) >= 0 && yyn <= YYTABLESIZE && yycheck[yyn] == yychar) { yyn = yytable[yyn]; goto yyreduce; } if (yyerrflag) goto yyinrecovery; #ifdef lint goto yynewerror; #endif yynewerror: yyerror("syntax error"); #ifdef lint goto yyerrlab; #endif yyerrlab: ++yynerrs; yyinrecovery: if (yyerrflag < 3) { yyerrflag = 3; for (;;) { if ((yyn = yysindex[*yyssp]) && (yyn += YYERRCODE) >= 0 && yyn <= YYTABLESIZE && yycheck[yyn] == YYERRCODE) { #if YYDEBUG if (yydebug) printf("%sdebug: state %d, error recovery shifting\ to state %d\n", YYPREFIX, *yyssp, yytable[yyn]); #endif if (yyssp >= yyss + yystacksize - 1) { goto yyoverflow; } *++yyssp = yystate = yytable[yyn]; *++yyvsp = yylval; goto yyloop; } else { #if YYDEBUG if (yydebug) printf("%sdebug: error recovery discarding state %d\n", YYPREFIX, *yyssp); #endif if (yyssp <= yyss) goto yyabort; --yyssp; --yyvsp; } } } else { if (yychar == 0) goto yyabort; #if YYDEBUG if (yydebug) { yys = 0; if (yychar <= YYMAXTOKEN) yys = yyname[yychar]; if (!yys) yys = "illegal-symbol"; printf("%sdebug: state %d, error recovery discards token %d (%s)\n", YYPREFIX, yystate, yychar, yys); } #endif yychar = (-1); goto yyloop; } yyreduce: #if YYDEBUG if (yydebug) printf("%sdebug: state %d, reducing by rule %d (%s)\n", YYPREFIX, yystate, yyn, yyrule[yyn]); #endif yym = yylen[yyn]; yyval = yyvsp[1-yym]; switch (yyn) { case 1: #line 60 "yaccsrc.yy" { DoAllSetting(); } break; case 2: #line 61 "yaccsrc.yy" { DoAllSetting(); } break; case 9: #line 72 "yaccsrc.yy" { CompleteMenu(yyvsp[-1].str, yyvsp[0].mItem); } break; case 11: #line 74 "yaccsrc.yy" { CompleteMenu(yyvsp[-1].str, yyvsp[0].mItem); } break; case 17: #line 80 "yaccsrc.yy" { CompleteMenu(yyvsp[-1].str, yyvsp[0].mItem); } break; case 25: #line 92 "yaccsrc.yy" { AssignVariable(yyvsp[-2].str, yyvsp[0].str); } break; case 26: #line 93 "yaccsrc.yy" { AssignVariable(yyvsp[-2].str, yyvsp[0].str); } break; case 27: #line 96 "yaccsrc.yy" { yyval.mItem = ChainMenuItem(yyvsp[-1].mItem, yyvsp[0].mItem); } break; case 28: #line 97 "yaccsrc.yy" { yyval.mItem = ChainMenuItem(yyvsp[0].mItem, NULL); } break; case 29: #line 100 "yaccsrc.yy" { yyval.mItem = MakeExecItem(yyvsp[-2].str, yyvsp[-1].str, yyvsp[0].str); } break; case 30: #line 101 "yaccsrc.yy" { yyval.mItem = MakeFuncItem(yyvsp[-2].str, yyvsp[-1].str, yyvsp[0].str); } break; case 31: #line 102 "yaccsrc.yy" { yyval.mItem = MakeDirItem(yyvsp[-4].str, yyvsp[-3].str, yyvsp[-1].mItem); } break; case 32: #line 105 "yaccsrc.yy" { yyval.mItem = ChainMenuItem(yyvsp[-1].mItem, yyvsp[0].mItem); } break; case 33: #line 106 "yaccsrc.yy" { yyval.mItem = ChainMenuItem(yyvsp[0].mItem, NULL); } break; case 34: #line 110 "yaccsrc.yy" { yyval.mItem = MakeDesktopItem(yyvsp[-5].str, yyvsp[-4].str, yyvsp[-3].str, yyvsp[-2].str, yyvsp[0].str); } break; case 35: #line 112 "yaccsrc.yy" { yyval.mItem = MakeDesktopItem(yyvsp[-3].str, yyvsp[-2].str, yyvsp[-1].str, yyvsp[0].str, NULL); } break; case 36: #line 114 "yaccsrc.yy" { yyval.mItem = MakeDesktopItem(yyvsp[-4].str, yyvsp[-3].str, yyvsp[-2].str, NULL, yyvsp[0].str); } break; case 37: #line 116 "yaccsrc.yy" { yyval.mItem = MakeDesktopItem(yyvsp[-2].str, yyvsp[-1].str, yyvsp[0].str, NULL, NULL); } break; case 38: #line 118 "yaccsrc.yy" { yyval.mItem = MakeDesktopFuncItem(yyvsp[-5].str, yyvsp[-4].str, yyvsp[-3].str, yyvsp[-2].str, yyvsp[0].str); } break; case 39: #line 120 "yaccsrc.yy" { yyval.mItem = MakeDesktopFuncItem(yyvsp[-3].str, yyvsp[-2].str, yyvsp[-1].str, yyvsp[0].str, NULL); } break; case 40: #line 122 "yaccsrc.yy" { yyval.mItem = MakeDesktopFuncItem(yyvsp[-4].str, yyvsp[-3].str, yyvsp[-2].str, NULL, yyvsp[0].str); } break; case 41: #line 124 "yaccsrc.yy" { yyval.mItem = MakeDesktopFuncItem(yyvsp[-2].str, yyvsp[-1].str, yyvsp[0].str, NULL, NULL); } break; case 44: #line 131 "yaccsrc.yy" { CreateAppHash(yyvsp[-1].str, yyvsp[0].aStream); } break; case 45: #line 134 "yaccsrc.yy" { yyval.aStream = MakeStream(yyvsp[-2].str, NULL, yyvsp[0].aStream); } break; case 46: #line 135 "yaccsrc.yy" { yyval.aStream = MakeStream(yyvsp[0].str, NULL, NULL); } break; case 47: #line 136 "yaccsrc.yy" { yyval.aStream = MakeStream(yyvsp[-4].str, yyvsp[-2].str, yyvsp[0].aStream); } break; case 48: #line 137 "yaccsrc.yy" { yyval.aStream = MakeStream(yyvsp[-2].str, yyvsp[0].str, NULL); } break; case 49: #line 140 "yaccsrc.yy" { yyval.mItem = ChainMenuItem(yyvsp[-1].mItem, yyvsp[0].mItem); } break; case 50: #line 141 "yaccsrc.yy" { yyval.mItem = ChainMenuItem(yyvsp[0].mItem, NULL); } break; case 51: #line 144 "yaccsrc.yy" { yyval.mItem = MakeDlgFuncItem(yyvsp[-2].str, yyvsp[-1].str, yyvsp[0].str); } break; case 52: #line 145 "yaccsrc.yy" { yyval.mItem = MakeDlgItem(yyvsp[-2].str, yyvsp[-1].str, yyvsp[0].str); } break; case 53: #line 146 "yaccsrc.yy" { yyval.mItem = MakeDlgFuncItem(yyvsp[-1].str, yyvsp[0].str, NULL); } break; case 56: #line 153 "yaccsrc.yy" { CreateSCKey(yyvsp[-2].str, yyvsp[-1].modifier, yyvsp[0].str); } break; case 57: #line 154 "yaccsrc.yy" { CreateSCKeyFunc(yyvsp[-2].str, yyvsp[-1].modifier, yyvsp[0].str); } break; case 58: #line 157 "yaccsrc.yy" { yyval.modifier = MakeModifier(yyvsp[-2].str, yyvsp[0].modifier); } break; case 59: #line 158 "yaccsrc.yy" { yyval.modifier = MakeModifier(yyvsp[0].str, 0); } break; case 62: #line 165 "yaccsrc.yy" { CreateIndicator(yyvsp[-1].str, yyvsp[0].str); } break; case 65: #line 172 "yaccsrc.yy" { if (!restart) ExecCommand(yyvsp[0].str); } break; case 68: #line 179 "yaccsrc.yy" { CreateAccessory(yyvsp[-2].str, yyvsp[-1].str, yyvsp[0].str); } break; #line 639 "y.tab.c" } yyssp -= yym; yystate = *yyssp; yyvsp -= yym; yym = yylhs[yyn]; if (yystate == 0 && yym == 0) { #if YYDEBUG if (yydebug) printf("%sdebug: after reduction, shifting from state 0 to\ state %d\n", YYPREFIX, YYFINAL); #endif yystate = YYFINAL; *++yyssp = YYFINAL; *++yyvsp = yyval; if (yychar < 0) { if ((yychar = yylex()) < 0) yychar = 0; #if YYDEBUG if (yydebug) { yys = 0; if (yychar <= YYMAXTOKEN) yys = yyname[yychar]; if (!yys) yys = "illegal-symbol"; printf("%sdebug: state %d, reading %d (%s)\n", YYPREFIX, YYFINAL, yychar, yys); } #endif } if (yychar == 0) goto yyaccept; goto yyloop; } if ((yyn = yygindex[yym]) && (yyn += yystate) >= 0 && yyn <= YYTABLESIZE && yycheck[yyn] == yystate) yystate = yytable[yyn]; else yystate = yydgoto[yym]; #if YYDEBUG if (yydebug) printf("%sdebug: after reduction, shifting from state %d \ to state %d\n", YYPREFIX, *yyssp, yystate); #endif if (yyssp >= yyss + yystacksize - 1) { goto yyoverflow; } *++yyssp = yystate; *++yyvsp = yyval; goto yyloop; yyoverflow: yyerror("yacc stack overflow"); yyabort: return (1); yyaccept: return (0); }