1 |
/* A Bison parser, made by GNU Bison 1.875. */ |
/* A Bison parser, made by GNU Bison 1.875d. */ |
2 |
|
|
3 |
/* Skeleton parser for Yacc-like parsing with Bison, |
/* Skeleton parser for Yacc-like parsing with Bison, |
4 |
Copyright (C) 1984, 1989, 1990, 2000, 2001, 2002 Free Software Foundation, Inc. |
Copyright (C) 1984, 1989, 1990, 2000, 2001, 2002, 2003, 2004 Free Software Foundation, Inc. |
5 |
|
|
6 |
This program is free software; you can redistribute it and/or modify |
This program is free software; you can redistribute it and/or modify |
7 |
it under the terms of the GNU General Public License as published by |
it under the terms of the GNU General Public License as published by |
117 |
|
|
118 |
|
|
119 |
/* Line 214 of yacc.c. */ |
/* Line 214 of yacc.c. */ |
120 |
#line 120 "y.tab.c" |
#line 121 "y.tab.c" |
121 |
|
|
122 |
#if ! defined (yyoverflow) || YYERROR_VERBOSE |
#if ! defined (yyoverflow) || YYERROR_VERBOSE |
123 |
|
|
124 |
|
# ifndef YYFREE |
125 |
|
# define YYFREE free |
126 |
|
# endif |
127 |
|
# ifndef YYMALLOC |
128 |
|
# define YYMALLOC malloc |
129 |
|
# endif |
130 |
|
|
131 |
/* The parser invokes alloca or malloc; define the necessary symbols. */ |
/* The parser invokes alloca or malloc; define the necessary symbols. */ |
132 |
|
|
133 |
# if YYSTACK_USE_ALLOCA |
# ifdef YYSTACK_USE_ALLOCA |
134 |
# define YYSTACK_ALLOC alloca |
# if YYSTACK_USE_ALLOCA |
135 |
|
# define YYSTACK_ALLOC alloca |
136 |
|
# endif |
137 |
# else |
# else |
138 |
# ifndef YYSTACK_USE_ALLOCA |
# if defined (alloca) || defined (_ALLOCA_H) |
139 |
# if defined (alloca) || defined (_ALLOCA_H) |
# define YYSTACK_ALLOC alloca |
140 |
# define YYSTACK_ALLOC alloca |
# else |
141 |
# else |
# ifdef __GNUC__ |
142 |
# ifdef __GNUC__ |
# define YYSTACK_ALLOC __builtin_alloca |
|
# define YYSTACK_ALLOC __builtin_alloca |
|
|
# endif |
|
143 |
# endif |
# endif |
144 |
# endif |
# endif |
145 |
# endif |
# endif |
152 |
# include <stdlib.h> /* INFRINGES ON USER NAME SPACE */ |
# include <stdlib.h> /* INFRINGES ON USER NAME SPACE */ |
153 |
# define YYSIZE_T size_t |
# define YYSIZE_T size_t |
154 |
# endif |
# endif |
155 |
# define YYSTACK_ALLOC malloc |
# define YYSTACK_ALLOC YYMALLOC |
156 |
# define YYSTACK_FREE free |
# define YYSTACK_FREE YYFREE |
157 |
# endif |
# endif |
158 |
#endif /* ! defined (yyoverflow) || YYERROR_VERBOSE */ |
#endif /* ! defined (yyoverflow) || YYERROR_VERBOSE */ |
159 |
|
|
160 |
|
|
161 |
#if (! defined (yyoverflow) \ |
#if (! defined (yyoverflow) \ |
162 |
&& (! defined (__cplusplus) \ |
&& (! defined (__cplusplus) \ |
163 |
|| (YYSTYPE_IS_TRIVIAL))) |
|| (defined (YYSTYPE_IS_TRIVIAL) && YYSTYPE_IS_TRIVIAL))) |
164 |
|
|
165 |
/* A type that is properly aligned for any stack member. */ |
/* A type that is properly aligned for any stack member. */ |
166 |
union yyalloc |
union yyalloc |
167 |
{ |
{ |
168 |
short yyss; |
short int yyss; |
169 |
YYSTYPE yyvs; |
YYSTYPE yyvs; |
170 |
}; |
}; |
171 |
|
|
175 |
/* The size of an array large to enough to hold all stacks, each with |
/* The size of an array large to enough to hold all stacks, each with |
176 |
N elements. */ |
N elements. */ |
177 |
# define YYSTACK_BYTES(N) \ |
# define YYSTACK_BYTES(N) \ |
178 |
((N) * (sizeof (short) + sizeof (YYSTYPE)) \ |
((N) * (sizeof (short int) + sizeof (YYSTYPE)) \ |
179 |
+ YYSTACK_GAP_MAXIMUM) |
+ YYSTACK_GAP_MAXIMUM) |
180 |
|
|
181 |
/* Copy COUNT objects from FROM to TO. The source and destination do |
/* Copy COUNT objects from FROM to TO. The source and destination do |
182 |
not overlap. */ |
not overlap. */ |
183 |
# ifndef YYCOPY |
# ifndef YYCOPY |
184 |
# if 1 < __GNUC__ |
# if defined (__GNUC__) && 1 < __GNUC__ |
185 |
# define YYCOPY(To, From, Count) \ |
# define YYCOPY(To, From, Count) \ |
186 |
__builtin_memcpy (To, From, (Count) * sizeof (*(From))) |
__builtin_memcpy (To, From, (Count) * sizeof (*(From))) |
187 |
# else |
# else |
217 |
#if defined (__STDC__) || defined (__cplusplus) |
#if defined (__STDC__) || defined (__cplusplus) |
218 |
typedef signed char yysigned_char; |
typedef signed char yysigned_char; |
219 |
#else |
#else |
220 |
typedef short yysigned_char; |
typedef short int yysigned_char; |
221 |
#endif |
#endif |
222 |
|
|
223 |
/* YYFINAL -- State number of the termination state. */ |
/* YYFINAL -- State number of the termination state. */ |
275 |
#if YYDEBUG |
#if YYDEBUG |
276 |
/* YYPRHS[YYN] -- Index of the first RHS symbol of rule number YYN in |
/* YYPRHS[YYN] -- Index of the first RHS symbol of rule number YYN in |
277 |
YYRHS. */ |
YYRHS. */ |
278 |
static const unsigned short yyprhs[] = |
static const unsigned short int yyprhs[] = |
279 |
{ |
{ |
280 |
0, 0, 3, 6, 10, 11, 13, 15, 17, 19, |
0, 0, 3, 6, 10, 11, 13, 15, 17, 19, |
281 |
22, 25, 28, 31, 35, 39, 43, 47, 51, 55, |
22, 25, 28, 31, 35, 39, 43, 47, 51, 55, |
322 |
}; |
}; |
323 |
|
|
324 |
/* YYRHS -- A `-1'-separated list of the rules' RHS. */ |
/* YYRHS -- A `-1'-separated list of the rules' RHS. */ |
325 |
static const short yyrhs[] = |
static const short int yyrhs[] = |
326 |
{ |
{ |
327 |
228, 0, -1, 229, 267, -1, 229, 268, 267, -1, |
228, 0, -1, 229, 267, -1, 229, 268, 267, -1, |
328 |
-1, 230, -1, 231, -1, 1, -1, 3, -1, 230, |
-1, 230, -1, 231, -1, 1, -1, 3, -1, 230, |
496 |
}; |
}; |
497 |
|
|
498 |
/* YYRLINE[YYN] -- source line where rule number YYN was defined. */ |
/* YYRLINE[YYN] -- source line where rule number YYN was defined. */ |
499 |
static const unsigned short yyrline[] = |
static const unsigned short int yyrline[] = |
500 |
{ |
{ |
501 |
0, 81, 81, 82, 85, 86, 87, 88, 91, 92, |
0, 81, 81, 82, 85, 86, 87, 88, 91, 92, |
502 |
93, 94, 95, 98, 99, 100, 101, 102, 103, 104, |
93, 94, 95, 98, 99, 100, 101, 102, 103, 104, |
548 |
First, the terminals, then, starting at YYNTOKENS, nonterminals. */ |
First, the terminals, then, starting at YYNTOKENS, nonterminals. */ |
549 |
static const char *const yytname[] = |
static const char *const yytname[] = |
550 |
{ |
{ |
551 |
"$end", "error", "$undefined", "'#'", "'='", "'.'", "'+'", "'-'", "'0'", |
"$end", "error", "$undefined", "'#'", "'='", "'.'", "'+'", "'-'", "'0'", |
552 |
"'1'", "'2'", "'3'", "'4'", "'5'", "'6'", "'7'", "'8'", "'9'", "'A'", |
"'1'", "'2'", "'3'", "'4'", "'5'", "'6'", "'7'", "'8'", "'9'", "'A'", |
553 |
"'B'", "'C'", "'D'", "'E'", "'F'", "'G'", "'H'", "'I'", "'J'", "'K'", |
"'B'", "'C'", "'D'", "'E'", "'F'", "'G'", "'H'", "'I'", "'J'", "'K'", |
554 |
"'L'", "'M'", "'N'", "'O'", "'P'", "'Q'", "'R'", "'S'", "'T'", "'U'", |
"'L'", "'M'", "'N'", "'O'", "'P'", "'Q'", "'R'", "'S'", "'T'", "'U'", |
555 |
"'V'", "'W'", "'X'", "'Y'", "'Z'", "'a'", "'b'", "'c'", "'d'", "'e'", |
"'V'", "'W'", "'X'", "'Y'", "'Z'", "'a'", "'b'", "'c'", "'d'", "'e'", |
556 |
"'f'", "'g'", "'h'", "'i'", "'j'", "'k'", "'l'", "'m'", "'n'", "'o'", |
"'f'", "'g'", "'h'", "'i'", "'j'", "'k'", "'l'", "'m'", "'n'", "'o'", |
557 |
"'p'", "'q'", "'r'", "'s'", "'t'", "'u'", "'v'", "'w'", "'x'", "'y'", |
"'p'", "'q'", "'r'", "'s'", "'t'", "'u'", "'v'", "'w'", "'x'", "'y'", |
558 |
"'z'", "'!'", "'$'", "'%'", "'&'", "'('", "')'", "'*'", "','", "'/'", |
"'z'", "'!'", "'$'", "'%'", "'&'", "'('", "')'", "'*'", "','", "'/'", |
559 |
"':'", "';'", "'<'", "'>'", "'?'", "'@'", "'['", "'\\\\'", "']'", "'^'", |
"':'", "';'", "'<'", "'>'", "'?'", "'@'", "'['", "'\\\\'", "']'", "'^'", |
560 |
"'_'", "'{'", "'|'", "'}'", "'~'", "'\\200'", "'\\201'", "'\\202'", |
"'_'", "'{'", "'|'", "'}'", "'~'", "'\\200'", "'\\201'", "'\\202'", |
561 |
"'\\203'", "'\\204'", "'\\205'", "'\\206'", "'\\207'", "'\\210'", |
"'\\203'", "'\\204'", "'\\205'", "'\\206'", "'\\207'", "'\\210'", |
562 |
"'\\211'", "'\\212'", "'\\213'", "'\\214'", "'\\215'", "'\\216'", |
"'\\211'", "'\\212'", "'\\213'", "'\\214'", "'\\215'", "'\\216'", |
563 |
"'\\217'", "'\\220'", "'\\221'", "'\\222'", "'\\223'", "'\\224'", |
"'\\217'", "'\\220'", "'\\221'", "'\\222'", "'\\223'", "'\\224'", |
564 |
"'\\225'", "'\\226'", "'\\227'", "'\\230'", "'\\231'", "'\\232'", |
"'\\225'", "'\\226'", "'\\227'", "'\\230'", "'\\231'", "'\\232'", |
565 |
"'\\233'", "'\\234'", "'\\235'", "'\\236'", "'\\237'", "' '", "'¡'", |
"'\\233'", "'\\234'", "'\\235'", "'\\236'", "'\\237'", "' '", "'¡'", |
566 |
"'¢'", "'£'", "'¤'", "'¥'", "'¦'", "'§'", "'¨'", "'©'", "'ª'", "'«'", |
"'¢'", "'£'", "'¤'", "'¥'", "'¦'", "'§'", "'¨'", "'©'", "'ª'", "'«'", |
567 |
"'¬'", "''", "'®'", "'¯'", "'°'", "'±'", "'²'", "'³'", "'´'", "'µ'", |
"'¬'", "''", "'®'", "'¯'", "'°'", "'±'", "'²'", "'³'", "'´'", "'µ'", |
568 |
"'¶'", "'·'", "'¸'", "'¹'", "'º'", "'»'", "'¼'", "'½'", "'¾'", "'¿'", |
"'¶'", "'·'", "'¸'", "'¹'", "'º'", "'»'", "'¼'", "'½'", "'¾'", "'¿'", |
569 |
"'À'", "'Á'", "'Â'", "'Ã'", "'Ä'", "'Å'", "'Æ'", "'Ç'", "'È'", "'É'", |
"'À'", "'Á'", "'Â'", "'Ã'", "'Ä'", "'Å'", "'Æ'", "'Ç'", "'È'", "'É'", |
570 |
"'Ê'", "'Ë'", "'Ì'", "'Í'", "'Î'", "'Ï'", "'Ð'", "'Ñ'", "'Ò'", "'Ó'", |
"'Ê'", "'Ë'", "'Ì'", "'Í'", "'Î'", "'Ï'", "'Ð'", "'Ñ'", "'Ò'", "'Ó'", |
571 |
"'Ô'", "'Õ'", "'Ö'", "'×'", "'Ø'", "'Ù'", "'Ú'", "'Û'", "'Ü'", "'Ý'", |
"'Ô'", "'Õ'", "'Ö'", "'×'", "'Ø'", "'Ù'", "'Ú'", "'Û'", "'Ü'", "'Ý'", |
572 |
"'Þ'", "'ß'", "'à'", "'á'", "'â'", "'ã'", "'ä'", "'å'", "'æ'", "'ç'", |
"'Þ'", "'ß'", "'à'", "'á'", "'â'", "'ã'", "'ä'", "'å'", "'æ'", "'ç'", |
573 |
"'è'", "'é'", "'ê'", "'ë'", "'ì'", "'í'", "'î'", "'ï'", "'ð'", "'ñ'", |
"'è'", "'é'", "'ê'", "'ë'", "'ì'", "'í'", "'î'", "'ï'", "'ð'", "'ñ'", |
574 |
"'ò'", "'ó'", "'ô'", "'õ'", "'ö'", "'÷'", "'ø'", "'ù'", "'ú'", "'û'", |
"'ò'", "'ó'", "'ô'", "'õ'", "'ö'", "'÷'", "'ø'", "'ù'", "'ú'", "'û'", |
575 |
"'ü'", "'ý'", "'þ'", "'ÿ'", "'''", "'\"'", "' '", "'\\n'", "'\\r'", |
"'ü'", "'ý'", "'þ'", "'ÿ'", "'''", "'\"'", "' '", "'\\n'", "'\\r'", |
576 |
"$accept", "input", "line", "comment", "command", "subscribe_event", |
"$accept", "input", "line", "comment", "command", "subscribe_event", |
577 |
"unsubscribe_event", "get_instruction", "set_instruction", |
"unsubscribe_event", "get_instruction", "set_instruction", |
578 |
"create_instruction", "destroy_instruction", "load_instruction", |
"create_instruction", "destroy_instruction", "load_instruction", |
579 |
"set_chan_instruction", "key_val_list", "buffer_size_type", |
"set_chan_instruction", "key_val_list", "buffer_size_type", |
580 |
"list_instruction", "load_instr_args", "load_engine_args", |
"list_instruction", "load_instr_args", "load_engine_args", |
581 |
"device_index", "audio_channel_index", "audio_output_type_name", |
"device_index", "audio_channel_index", "audio_output_type_name", |
582 |
"midi_input_port_index", "midi_input_channel_index", |
"midi_input_port_index", "midi_input_channel_index", |
583 |
"midi_input_type_name", "volume_value", "sampler_channel", |
"midi_input_type_name", "volume_value", "sampler_channel", |
584 |
"instrument_index", "engine_name", "filename", "param_val", "boolean", |
"instrument_index", "engine_name", "filename", "param_val", "boolean", |
585 |
"string", "dotnum", "digits", "digit", "number", "char", "text", |
"string", "dotnum", "digits", "digit", "number", "char", "text", |
586 |
"stringval", "SP", "LF", "CR", "ADD", "GET", "CREATE", "DESTROY", |
"stringval", "SP", "LF", "CR", "ADD", "GET", "CREATE", "DESTROY", "LIST", |
587 |
"LIST", "LOAD", "ALL", "NON_MODAL", "REMOVE", "SET", "SUBSCRIBE", |
"LOAD", "ALL", "NON_MODAL", "REMOVE", "SET", "SUBSCRIBE", "UNSUBSCRIBE", |
588 |
"UNSUBSCRIBE", "SELECT", "CHANNEL", "AVAILABLE_ENGINES", |
"SELECT", "CHANNEL", "AVAILABLE_ENGINES", |
589 |
"AVAILABLE_AUDIO_OUTPUT_DRIVERS", "CHANNELS", "INFO", "BUFFER_FILL", |
"AVAILABLE_AUDIO_OUTPUT_DRIVERS", "CHANNELS", "INFO", "BUFFER_FILL", |
590 |
"STREAM_COUNT", "VOICE_COUNT", "INSTRUMENT", "ENGINE", |
"STREAM_COUNT", "VOICE_COUNT", "INSTRUMENT", "ENGINE", |
591 |
"AUDIO_OUTPUT_DEVICE_PARAMETER", "AUDIO_OUTPUT_DEVICES", |
"AUDIO_OUTPUT_DEVICE_PARAMETER", "AUDIO_OUTPUT_DEVICES", |
592 |
"AUDIO_OUTPUT_DEVICE", "AUDIO_OUTPUT_DRIVER_PARAMETER", |
"AUDIO_OUTPUT_DEVICE", "AUDIO_OUTPUT_DRIVER_PARAMETER", |
593 |
"AUDIO_OUTPUT_DRIVER", "AUDIO_OUTPUT_CHANNEL_PARAMETER", |
"AUDIO_OUTPUT_DRIVER", "AUDIO_OUTPUT_CHANNEL_PARAMETER", |
594 |
"AUDIO_OUTPUT_CHANNEL", "AUDIO_OUTPUT_TYPE", |
"AUDIO_OUTPUT_CHANNEL", "AUDIO_OUTPUT_TYPE", |
595 |
"AVAILABLE_MIDI_INPUT_DRIVERS", "MIDI_INPUT_DEVICE_PARAMETER", |
"AVAILABLE_MIDI_INPUT_DRIVERS", "MIDI_INPUT_DEVICE_PARAMETER", |
596 |
"MIDI_INPUT_PORT_PARAMETER", "MIDI_INPUT_DEVICES", "MIDI_INPUT_DEVICE", |
"MIDI_INPUT_PORT_PARAMETER", "MIDI_INPUT_DEVICES", "MIDI_INPUT_DEVICE", |
597 |
"MIDI_INPUT_DRIVER_PARAMETER", "MIDI_INPUT_DRIVER", "MIDI_INPUT_PORT", |
"MIDI_INPUT_DRIVER_PARAMETER", "MIDI_INPUT_DRIVER", "MIDI_INPUT_PORT", |
598 |
"MIDI_INPUT_CHANNEL", "MIDI_INPUT_TYPE", "MIDI_INPUT", "VOLUME", |
"MIDI_INPUT_CHANNEL", "MIDI_INPUT_TYPE", "MIDI_INPUT", "VOLUME", "BYTES", |
599 |
"BYTES", "PERCENTAGE", "RESET", "MISCELLANEOUS", "ECHO", "QUIT", 0 |
"PERCENTAGE", "RESET", "MISCELLANEOUS", "ECHO", "QUIT", 0 |
600 |
}; |
}; |
601 |
#endif |
#endif |
602 |
|
|
603 |
# ifdef YYPRINT |
# ifdef YYPRINT |
604 |
/* YYTOKNUM[YYLEX-NUM] -- Internal token number corresponding to |
/* YYTOKNUM[YYLEX-NUM] -- Internal token number corresponding to |
605 |
token YYLEX-NUM. */ |
token YYLEX-NUM. */ |
606 |
static const unsigned short yytoknum[] = |
static const unsigned short int yytoknum[] = |
607 |
{ |
{ |
608 |
0, 256, 257, 35, 61, 46, 43, 45, 48, 49, |
0, 256, 257, 35, 61, 46, 43, 45, 48, 49, |
609 |
50, 51, 52, 53, 54, 55, 56, 57, 65, 66, |
50, 51, 52, 53, 54, 55, 56, 57, 65, 66, |
632 |
# endif |
# endif |
633 |
|
|
634 |
/* YYR1[YYN] -- Symbol number of symbol that rule YYN derives. */ |
/* YYR1[YYN] -- Symbol number of symbol that rule YYN derives. */ |
635 |
static const unsigned short yyr1[] = |
static const unsigned short int yyr1[] = |
636 |
{ |
{ |
637 |
0, 227, 228, 228, 229, 229, 229, 229, 230, 230, |
0, 227, 228, 228, 229, 229, 229, 229, 230, 230, |
638 |
230, 230, 230, 231, 231, 231, 231, 231, 231, 231, |
230, 230, 230, 231, 231, 231, 231, 231, 231, 231, |
728 |
/* YYDEFACT[STATE-NAME] -- Default rule to reduce with in state |
/* YYDEFACT[STATE-NAME] -- Default rule to reduce with in state |
729 |
STATE-NUM when YYTABLE doesn't specify something else to do. Zero |
STATE-NUM when YYTABLE doesn't specify something else to do. Zero |
730 |
means the default is an error. */ |
means the default is an error. */ |
731 |
static const unsigned short yydefact[] = |
static const unsigned short int yydefact[] = |
732 |
{ |
{ |
733 |
0, 7, 8, 0, 0, 0, 0, 0, 0, 0, |
0, 7, 8, 0, 0, 0, 0, 0, 0, 0, |
734 |
0, 0, 0, 0, 5, 6, 0, 0, 0, 0, |
0, 0, 0, 0, 5, 6, 0, 0, 0, 0, |
848 |
}; |
}; |
849 |
|
|
850 |
/* YYDEFGOTO[NTERM-NUM]. */ |
/* YYDEFGOTO[NTERM-NUM]. */ |
851 |
static const short yydefgoto[] = |
static const short int yydefgoto[] = |
852 |
{ |
{ |
853 |
-1, 12, 13, 14, 15, 388, 395, 334, 376, 355, |
-1, 12, 13, 14, 15, 388, 395, 334, 376, 355, |
854 |
358, 369, 530, 648, 630, 364, 515, 519, 774, 776, |
358, 369, 530, 648, 630, 364, 515, 519, 774, 776, |
865 |
/* YYPACT[STATE-NUM] -- Index in YYTABLE of the portion describing |
/* YYPACT[STATE-NUM] -- Index in YYTABLE of the portion describing |
866 |
STATE-NUM. */ |
STATE-NUM. */ |
867 |
#define YYPACT_NINF -705 |
#define YYPACT_NINF -705 |
868 |
static const short yypact[] = |
static const short int yypact[] = |
869 |
{ |
{ |
870 |
55, -705, -705, 12, 25, 33, 80, 31, 39, 82, |
55, -705, -705, 12, 25, 33, 80, 31, 39, 82, |
871 |
1, 101, 109, -173, 1578, -705, -64, -64, -64, -64, |
1, 101, 109, -173, 1578, -705, -64, -64, -64, -64, |
985 |
}; |
}; |
986 |
|
|
987 |
/* YYPGOTO[NTERM-NUM]. */ |
/* YYPGOTO[NTERM-NUM]. */ |
988 |
static const short yypgoto[] = |
static const short int yypgoto[] = |
989 |
{ |
{ |
990 |
-705, -705, -705, -705, -705, -705, -705, -705, -705, -705, |
-705, -705, -705, -705, -705, -705, -705, -705, -705, -705, |
991 |
-705, -705, -705, -582, -705, -705, -705, -705, -497, -427, |
-705, -705, -705, -582, -705, -705, -705, -705, -497, -427, |
1004 |
number is the opposite. If zero, do what YYDEFACT says. |
number is the opposite. If zero, do what YYDEFACT says. |
1005 |
If YYTABLE_NINF, syntax error. */ |
If YYTABLE_NINF, syntax error. */ |
1006 |
#define YYTABLE_NINF -132 |
#define YYTABLE_NINF -132 |
1007 |
static const short yytable[] = |
static const short int yytable[] = |
1008 |
{ |
{ |
1009 |
267, 650, 552, 269, 512, 270, 271, 272, 273, 274, |
267, 650, 552, 269, 512, 270, 271, 272, 273, 274, |
1010 |
275, 276, 277, 278, 279, 280, 281, 397, 356, 359, |
275, 276, 277, 278, 279, 280, 281, 397, 356, 359, |
1408 |
256, 257, 258, 259, 260, 261, 262, 263 |
256, 257, 258, 259, 260, 261, 262, 263 |
1409 |
}; |
}; |
1410 |
|
|
1411 |
static const short yycheck[] = |
static const short int yycheck[] = |
1412 |
{ |
{ |
1413 |
14, 583, 464, 14, 31, 16, 17, 18, 19, 20, |
14, 583, 464, 14, 31, 16, 17, 18, 19, 20, |
1414 |
21, 22, 23, 24, 25, 26, 27, 279, 272, 273, |
21, 22, 23, 24, 25, 26, 27, 279, 272, 273, |
1814 |
|
|
1815 |
/* YYSTOS[STATE-NUM] -- The (internal number of the) accessing |
/* YYSTOS[STATE-NUM] -- The (internal number of the) accessing |
1816 |
symbol of state STATE-NUM. */ |
symbol of state STATE-NUM. */ |
1817 |
static const unsigned short yystos[] = |
static const unsigned short int yystos[] = |
1818 |
{ |
{ |
1819 |
0, 1, 3, 18, 20, 21, 24, 29, 34, 35, |
0, 1, 3, 18, 20, 21, 24, 29, 34, 35, |
1820 |
36, 38, 228, 229, 230, 231, 269, 270, 271, 272, |
36, 38, 228, 229, 230, 231, 269, 270, 271, 272, |
1956 |
|
|
1957 |
#define YYACCEPT goto yyacceptlab |
#define YYACCEPT goto yyacceptlab |
1958 |
#define YYABORT goto yyabortlab |
#define YYABORT goto yyabortlab |
1959 |
#define YYERROR goto yyerrlab1 |
#define YYERROR goto yyerrorlab |
1960 |
|
|
1961 |
|
|
1962 |
/* Like YYERROR except do call yyerror. This remains here temporarily |
/* Like YYERROR except do call yyerror. This remains here temporarily |
1991 |
are run). */ |
are run). */ |
1992 |
|
|
1993 |
#ifndef YYLLOC_DEFAULT |
#ifndef YYLLOC_DEFAULT |
1994 |
# define YYLLOC_DEFAULT(Current, Rhs, N) \ |
# define YYLLOC_DEFAULT(Current, Rhs, N) \ |
1995 |
Current.first_line = Rhs[1].first_line; \ |
((Current).first_line = (Rhs)[1].first_line, \ |
1996 |
Current.first_column = Rhs[1].first_column; \ |
(Current).first_column = (Rhs)[1].first_column, \ |
1997 |
Current.last_line = Rhs[N].last_line; \ |
(Current).last_line = (Rhs)[N].last_line, \ |
1998 |
Current.last_column = Rhs[N].last_column; |
(Current).last_column = (Rhs)[N].last_column) |
1999 |
#endif |
#endif |
2000 |
|
|
2001 |
/* YYLEX -- calling `yylex' with the right arguments. */ |
/* YYLEX -- calling `yylex' with the right arguments. */ |
2039 |
|
|
2040 |
/*------------------------------------------------------------------. |
/*------------------------------------------------------------------. |
2041 |
| yy_stack_print -- Print the state stack from its BOTTOM up to its | |
| yy_stack_print -- Print the state stack from its BOTTOM up to its | |
2042 |
| TOP (cinluded). | |
| TOP (included). | |
2043 |
`------------------------------------------------------------------*/ |
`------------------------------------------------------------------*/ |
2044 |
|
|
2045 |
#if defined (__STDC__) || defined (__cplusplus) |
#if defined (__STDC__) || defined (__cplusplus) |
2046 |
static void |
static void |
2047 |
yy_stack_print (short *bottom, short *top) |
yy_stack_print (short int *bottom, short int *top) |
2048 |
#else |
#else |
2049 |
static void |
static void |
2050 |
yy_stack_print (bottom, top) |
yy_stack_print (bottom, top) |
2051 |
short *bottom; |
short int *bottom; |
2052 |
short *top; |
short int *top; |
2053 |
#endif |
#endif |
2054 |
{ |
{ |
2055 |
YYFPRINTF (stderr, "Stack now"); |
YYFPRINTF (stderr, "Stack now"); |
2079 |
#endif |
#endif |
2080 |
{ |
{ |
2081 |
int yyi; |
int yyi; |
2082 |
unsigned int yylineno = yyrline[yyrule]; |
unsigned int yylno = yyrline[yyrule]; |
2083 |
YYFPRINTF (stderr, "Reducing stack by rule %d (line %u), ", |
YYFPRINTF (stderr, "Reducing stack by rule %d (line %u), ", |
2084 |
yyrule - 1, yylineno); |
yyrule - 1, yylno); |
2085 |
/* Print the symbols being reduced, and their result. */ |
/* Print the symbols being reduced, and their result. */ |
2086 |
for (yyi = yyprhs[yyrule]; 0 <= yyrhs[yyi]; yyi++) |
for (yyi = yyprhs[yyrule]; 0 <= yyrhs[yyi]; yyi++) |
2087 |
YYFPRINTF (stderr, "%s ", yytname [yyrhs[yyi]]); |
YYFPRINTF (stderr, "%s ", yytname [yyrhs[yyi]]); |
2118 |
SIZE_MAX < YYSTACK_BYTES (YYMAXDEPTH) |
SIZE_MAX < YYSTACK_BYTES (YYMAXDEPTH) |
2119 |
evaluated with infinite-precision integer arithmetic. */ |
evaluated with infinite-precision integer arithmetic. */ |
2120 |
|
|
2121 |
#if YYMAXDEPTH == 0 |
#if defined (YYMAXDEPTH) && YYMAXDEPTH == 0 |
2122 |
# undef YYMAXDEPTH |
# undef YYMAXDEPTH |
2123 |
#endif |
#endif |
2124 |
|
|
2316 |
to reallocate them elsewhere. */ |
to reallocate them elsewhere. */ |
2317 |
|
|
2318 |
/* The state stack. */ |
/* The state stack. */ |
2319 |
short yyssa[YYINITDEPTH]; |
short int yyssa[YYINITDEPTH]; |
2320 |
short *yyss = yyssa; |
short int *yyss = yyssa; |
2321 |
register short *yyssp; |
register short int *yyssp; |
2322 |
|
|
2323 |
/* The semantic value stack. */ |
/* The semantic value stack. */ |
2324 |
YYSTYPE yyvsa[YYINITDEPTH]; |
YYSTYPE yyvsa[YYINITDEPTH]; |
2355 |
yyssp = yyss; |
yyssp = yyss; |
2356 |
yyvsp = yyvs; |
yyvsp = yyvs; |
2357 |
|
|
2358 |
|
|
2359 |
goto yysetstate; |
goto yysetstate; |
2360 |
|
|
2361 |
/*------------------------------------------------------------. |
/*------------------------------------------------------------. |
2381 |
these so that the &'s don't force the real ones into |
these so that the &'s don't force the real ones into |
2382 |
memory. */ |
memory. */ |
2383 |
YYSTYPE *yyvs1 = yyvs; |
YYSTYPE *yyvs1 = yyvs; |
2384 |
short *yyss1 = yyss; |
short int *yyss1 = yyss; |
2385 |
|
|
2386 |
|
|
2387 |
/* Each stack pointer address is followed by the size of the |
/* Each stack pointer address is followed by the size of the |
2409 |
yystacksize = YYMAXDEPTH; |
yystacksize = YYMAXDEPTH; |
2410 |
|
|
2411 |
{ |
{ |
2412 |
short *yyss1 = yyss; |
short int *yyss1 = yyss; |
2413 |
union yyalloc *yyptr = |
union yyalloc *yyptr = |
2414 |
(union yyalloc *) YYSTACK_ALLOC (YYSTACK_BYTES (yystacksize)); |
(union yyalloc *) YYSTACK_ALLOC (YYSTACK_BYTES (yystacksize)); |
2415 |
if (! yyptr) |
if (! yyptr) |
2968 |
|
|
2969 |
case 94: |
case 94: |
2970 |
#line 205 "lscp.y" |
#line 205 "lscp.y" |
2971 |
{ yyval.String = LSCPSERVER->LoadEngine(yyvsp[-2].String, yyvsp[0].Number); } |
{ yyval.String = LSCPSERVER->SetEngineType(yyvsp[-2].String, yyvsp[0].Number); } |
2972 |
break; |
break; |
2973 |
|
|
2974 |
case 100: |
case 100: |
4259 |
|
|
4260 |
} |
} |
4261 |
|
|
4262 |
/* Line 999 of yacc.c. */ |
/* Line 1010 of yacc.c. */ |
4263 |
#line 4255 "y.tab.c" |
#line 4264 "y.tab.c" |
4264 |
|
|
4265 |
yyvsp -= yylen; |
yyvsp -= yylen; |
4266 |
yyssp -= yylen; |
yyssp -= yylen; |
4301 |
{ |
{ |
4302 |
YYSIZE_T yysize = 0; |
YYSIZE_T yysize = 0; |
4303 |
int yytype = YYTRANSLATE (yychar); |
int yytype = YYTRANSLATE (yychar); |
4304 |
|
const char* yyprefix; |
4305 |
char *yymsg; |
char *yymsg; |
4306 |
int yyx, yycount; |
int yyx; |
4307 |
|
|
|
yycount = 0; |
|
4308 |
/* Start YYX at -YYN if negative to avoid negative indexes in |
/* Start YYX at -YYN if negative to avoid negative indexes in |
4309 |
YYCHECK. */ |
YYCHECK. */ |
4310 |
for (yyx = yyn < 0 ? -yyn : 0; |
int yyxbegin = yyn < 0 ? -yyn : 0; |
4311 |
yyx < (int) (sizeof (yytname) / sizeof (char *)); yyx++) |
|
4312 |
|
/* Stay within bounds of both yycheck and yytname. */ |
4313 |
|
int yychecklim = YYLAST - yyn; |
4314 |
|
int yyxend = yychecklim < YYNTOKENS ? yychecklim : YYNTOKENS; |
4315 |
|
int yycount = 0; |
4316 |
|
|
4317 |
|
yyprefix = ", expecting "; |
4318 |
|
for (yyx = yyxbegin; yyx < yyxend; ++yyx) |
4319 |
if (yycheck[yyx + yyn] == yyx && yyx != YYTERROR) |
if (yycheck[yyx + yyn] == yyx && yyx != YYTERROR) |
4320 |
yysize += yystrlen (yytname[yyx]) + 15, yycount++; |
{ |
4321 |
yysize += yystrlen ("syntax error, unexpected ") + 1; |
yysize += yystrlen (yyprefix) + yystrlen (yytname [yyx]); |
4322 |
yysize += yystrlen (yytname[yytype]); |
yycount += 1; |
4323 |
|
if (yycount == 5) |
4324 |
|
{ |
4325 |
|
yysize = 0; |
4326 |
|
break; |
4327 |
|
} |
4328 |
|
} |
4329 |
|
yysize += (sizeof ("syntax error, unexpected ") |
4330 |
|
+ yystrlen (yytname[yytype])); |
4331 |
yymsg = (char *) YYSTACK_ALLOC (yysize); |
yymsg = (char *) YYSTACK_ALLOC (yysize); |
4332 |
if (yymsg != 0) |
if (yymsg != 0) |
4333 |
{ |
{ |
4336 |
|
|
4337 |
if (yycount < 5) |
if (yycount < 5) |
4338 |
{ |
{ |
4339 |
yycount = 0; |
yyprefix = ", expecting "; |
4340 |
for (yyx = yyn < 0 ? -yyn : 0; |
for (yyx = yyxbegin; yyx < yyxend; ++yyx) |
|
yyx < (int) (sizeof (yytname) / sizeof (char *)); |
|
|
yyx++) |
|
4341 |
if (yycheck[yyx + yyn] == yyx && yyx != YYTERROR) |
if (yycheck[yyx + yyn] == yyx && yyx != YYTERROR) |
4342 |
{ |
{ |
4343 |
const char *yyq = ! yycount ? ", expecting " : " or "; |
yyp = yystpcpy (yyp, yyprefix); |
|
yyp = yystpcpy (yyp, yyq); |
|
4344 |
yyp = yystpcpy (yyp, yytname[yyx]); |
yyp = yystpcpy (yyp, yytname[yyx]); |
4345 |
yycount++; |
yyprefix = " or "; |
4346 |
} |
} |
4347 |
} |
} |
4348 |
yyerror (yymsg); |
yyerror (yymsg); |
4363 |
/* If just tried and failed to reuse lookahead token after an |
/* If just tried and failed to reuse lookahead token after an |
4364 |
error, discard it. */ |
error, discard it. */ |
4365 |
|
|
4366 |
/* Return failure if at end of input. */ |
if (yychar <= YYEOF) |
|
if (yychar == YYEOF) |
|
4367 |
{ |
{ |
4368 |
/* Pop the error token. */ |
/* If at end of input, pop the error token, |
4369 |
YYPOPSTACK; |
then the rest of the stack, then return failure. */ |
4370 |
/* Pop the rest of the stack. */ |
if (yychar == YYEOF) |
4371 |
while (yyss < yyssp) |
for (;;) |
4372 |
{ |
{ |
4373 |
YYDSYMPRINTF ("Error: popping", yystos[*yyssp], yyvsp, yylsp); |
YYPOPSTACK; |
4374 |
yydestruct (yystos[*yyssp], yyvsp); |
if (yyssp == yyss) |
4375 |
YYPOPSTACK; |
YYABORT; |
4376 |
} |
YYDSYMPRINTF ("Error: popping", yystos[*yyssp], yyvsp, yylsp); |
4377 |
YYABORT; |
yydestruct (yystos[*yyssp], yyvsp); |
4378 |
|
} |
4379 |
} |
} |
4380 |
|
else |
4381 |
|
{ |
4382 |
|
YYDSYMPRINTF ("Error: discarding", yytoken, &yylval, &yylloc); |
4383 |
|
yydestruct (yytoken, &yylval); |
4384 |
|
yychar = YYEMPTY; |
4385 |
|
|
4386 |
YYDSYMPRINTF ("Error: discarding", yytoken, &yylval, &yylloc); |
} |
|
yydestruct (yytoken, &yylval); |
|
|
yychar = YYEMPTY; |
|
|
|
|
4387 |
} |
} |
4388 |
|
|
4389 |
/* Else will try to reuse lookahead token after shifting the error |
/* Else will try to reuse lookahead token after shifting the error |
4391 |
goto yyerrlab1; |
goto yyerrlab1; |
4392 |
|
|
4393 |
|
|
4394 |
/*----------------------------------------------------. |
/*---------------------------------------------------. |
4395 |
| yyerrlab1 -- error raised explicitly by an action. | |
| yyerrorlab -- error raised explicitly by YYERROR. | |
4396 |
`----------------------------------------------------*/ |
`---------------------------------------------------*/ |
4397 |
|
yyerrorlab: |
4398 |
|
|
4399 |
|
#ifdef __GNUC__ |
4400 |
|
/* Pacify GCC when the user code never invokes YYERROR and the label |
4401 |
|
yyerrorlab therefore never appears in user code. */ |
4402 |
|
if (0) |
4403 |
|
goto yyerrorlab; |
4404 |
|
#endif |
4405 |
|
|
4406 |
|
yyvsp -= yylen; |
4407 |
|
yyssp -= yylen; |
4408 |
|
yystate = *yyssp; |
4409 |
|
goto yyerrlab1; |
4410 |
|
|
4411 |
|
|
4412 |
|
/*-------------------------------------------------------------. |
4413 |
|
| yyerrlab1 -- common code for both syntax error and YYERROR. | |
4414 |
|
`-------------------------------------------------------------*/ |
4415 |
yyerrlab1: |
yyerrlab1: |
4416 |
yyerrstatus = 3; /* Each real token shifted decrements this. */ |
yyerrstatus = 3; /* Each real token shifted decrements this. */ |
4417 |
|
|
4435 |
|
|
4436 |
YYDSYMPRINTF ("Error: popping", yystos[*yyssp], yyvsp, yylsp); |
YYDSYMPRINTF ("Error: popping", yystos[*yyssp], yyvsp, yylsp); |
4437 |
yydestruct (yystos[yystate], yyvsp); |
yydestruct (yystos[yystate], yyvsp); |
4438 |
yyvsp--; |
YYPOPSTACK; |
4439 |
yystate = *--yyssp; |
yystate = *yyssp; |
|
|
|
4440 |
YY_STACK_PRINT (yyss, yyssp); |
YY_STACK_PRINT (yyss, yyssp); |
4441 |
} |
} |
4442 |
|
|