/[svn]/linuxsampler/trunk/src/network/lscpparser.cpp
ViewVC logotype

Diff of /linuxsampler/trunk/src/network/lscpparser.cpp

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 138 by senkov, Sun Jun 20 23:18:24 2004 UTC revision 212 by schoenebeck, Wed Jul 28 14:17:29 2004 UTC
# Line 1  Line 1 
1  /* A Bison parser, made by GNU Bison 1.875.  */  /* A Bison parser, made by GNU Bison 1.875a.  */
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 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
# Line 68  Line 68 
68       DESTROY = 270,       DESTROY = 270,
69       LIST = 271,       LIST = 271,
70       LOAD = 272,       LOAD = 272,
71       LOAD_BACKGROUND = 273,       NON_MODAL = 273,
72       REMOVE = 274,       REMOVE = 274,
73       SET = 275,       SET = 275,
74       SUBSCRIBE = 276,       SUBSCRIBE = 276,
75       UNSUBSCRIBE = 277,       UNSUBSCRIBE = 277,
76       RESET = 278,       RESET = 278,
77       QUIT = 279,       ECHO = 279,
78       CHANNEL = 280,       QUIT = 280,
79       NOTIFICATION = 281,       CHANNEL = 281,
80       AVAILABLE_ENGINES = 282,       NOTIFICATION = 282,
81       AVAILABLE_AUDIO_OUTPUT_DRIVERS = 283,       AVAILABLE_ENGINES = 283,
82       CHANNELS = 284,       AVAILABLE_AUDIO_OUTPUT_DRIVERS = 284,
83       INFO = 285,       CHANNELS = 285,
84       BUFFER_FILL = 286,       INFO = 286,
85       STREAM_COUNT = 287,       BUFFER_FILL = 287,
86       VOICE_COUNT = 288,       STREAM_COUNT = 288,
87       INSTRUMENT = 289,       VOICE_COUNT = 289,
88       ENGINE = 290,       INSTRUMENT = 290,
89       AUDIO_OUTPUT_CHANNEL = 291,       ENGINE = 291,
90       AUDIO_OUTPUT_CHANNEL_PARAMETER = 292,       AUDIO_OUTPUT_CHANNEL = 292,
91       AUDIO_OUTPUT_DEVICE = 293,       AUDIO_OUTPUT_CHANNEL_PARAMETER = 293,
92       AUDIO_OUTPUT_DEVICES = 294,       AUDIO_OUTPUT_DEVICE = 294,
93       AUDIO_OUTPUT_DEVICE_PARAMETER = 295,       AUDIO_OUTPUT_DEVICES = 295,
94       AUDIO_OUTPUT_DRIVER = 296,       AUDIO_OUTPUT_DEVICE_PARAMETER = 296,
95       AUDIO_OUTPUT_DRIVER_PARAMETER = 297,       AUDIO_OUTPUT_DRIVER = 297,
96       MIDI_INPUT_PORT = 298,       AUDIO_OUTPUT_DRIVER_PARAMETER = 298,
97       MIDI_INPUT_CHANNEL = 299,       AUDIO_OUTPUT_TYPE = 299,
98       MIDI_INPUT_TYPE = 300,       MIDI_INPUT = 300,
99       VOLUME = 301,       MIDI_INPUT_TYPE = 301,
100       BYTES = 302,       MIDI_INPUT_PORT = 302,
101       PERCENTAGE = 303,       MIDI_INPUT_CHANNEL = 303,
102       MISCELLANEOUS = 304       VOLUME = 304,
103         MIDI_INPUT_DRIVER = 305,
104         MIDI_INPUT_DRIVER_PARAMETER = 306,
105         AVAILABLE_MIDI_INPUT_DRIVERS = 307,
106         MIDI_INPUT_DEVICE = 308,
107         MIDI_INPUT_DEVICES = 309,
108         MIDI_INPUT_DEVICE_PARAMETER = 310,
109         MIDI_INPUT_PORT_PARAMETER = 311,
110         BYTES = 312,
111         PERCENTAGE = 313,
112         MISCELLANEOUS = 314
113     };     };
114  #endif  #endif
115  #define CHAR 258  #define CHAR 258
# Line 117  Line 127 
127  #define DESTROY 270  #define DESTROY 270
128  #define LIST 271  #define LIST 271
129  #define LOAD 272  #define LOAD 272
130  #define LOAD_BACKGROUND 273  #define NON_MODAL 273
131  #define REMOVE 274  #define REMOVE 274
132  #define SET 275  #define SET 275
133  #define SUBSCRIBE 276  #define SUBSCRIBE 276
134  #define UNSUBSCRIBE 277  #define UNSUBSCRIBE 277
135  #define RESET 278  #define RESET 278
136  #define QUIT 279  #define ECHO 279
137  #define CHANNEL 280  #define QUIT 280
138  #define NOTIFICATION 281  #define CHANNEL 281
139  #define AVAILABLE_ENGINES 282  #define NOTIFICATION 282
140  #define AVAILABLE_AUDIO_OUTPUT_DRIVERS 283  #define AVAILABLE_ENGINES 283
141  #define CHANNELS 284  #define AVAILABLE_AUDIO_OUTPUT_DRIVERS 284
142  #define INFO 285  #define CHANNELS 285
143  #define BUFFER_FILL 286  #define INFO 286
144  #define STREAM_COUNT 287  #define BUFFER_FILL 287
145  #define VOICE_COUNT 288  #define STREAM_COUNT 288
146  #define INSTRUMENT 289  #define VOICE_COUNT 289
147  #define ENGINE 290  #define INSTRUMENT 290
148  #define AUDIO_OUTPUT_CHANNEL 291  #define ENGINE 291
149  #define AUDIO_OUTPUT_CHANNEL_PARAMETER 292  #define AUDIO_OUTPUT_CHANNEL 292
150  #define AUDIO_OUTPUT_DEVICE 293  #define AUDIO_OUTPUT_CHANNEL_PARAMETER 293
151  #define AUDIO_OUTPUT_DEVICES 294  #define AUDIO_OUTPUT_DEVICE 294
152  #define AUDIO_OUTPUT_DEVICE_PARAMETER 295  #define AUDIO_OUTPUT_DEVICES 295
153  #define AUDIO_OUTPUT_DRIVER 296  #define AUDIO_OUTPUT_DEVICE_PARAMETER 296
154  #define AUDIO_OUTPUT_DRIVER_PARAMETER 297  #define AUDIO_OUTPUT_DRIVER 297
155  #define MIDI_INPUT_PORT 298  #define AUDIO_OUTPUT_DRIVER_PARAMETER 298
156  #define MIDI_INPUT_CHANNEL 299  #define AUDIO_OUTPUT_TYPE 299
157  #define MIDI_INPUT_TYPE 300  #define MIDI_INPUT 300
158  #define VOLUME 301  #define MIDI_INPUT_TYPE 301
159  #define BYTES 302  #define MIDI_INPUT_PORT 302
160  #define PERCENTAGE 303  #define MIDI_INPUT_CHANNEL 303
161  #define MISCELLANEOUS 304  #define VOLUME 304
162    #define MIDI_INPUT_DRIVER 305
163    #define MIDI_INPUT_DRIVER_PARAMETER 306
164    #define AVAILABLE_MIDI_INPUT_DRIVERS 307
165    #define MIDI_INPUT_DEVICE 308
166    #define MIDI_INPUT_DEVICES 309
167    #define MIDI_INPUT_DEVICE_PARAMETER 310
168    #define MIDI_INPUT_PORT_PARAMETER 311
169    #define BYTES 312
170    #define PERCENTAGE 313
171    #define MISCELLANEOUS 314
172    
173    
174    
175    
176  /* Copy the first part of user declarations.  */  /* Copy the first part of user declarations.  */
177  #line 23 "lscp.y"  #line 26 "lscp.y"
178    
179    
180  #include "lscpparser.h"  #include "lscpparser.h"
181  #include "lscpserver.h"  #include "lscpserver.h"
182    #include "lscpevent.h"
183    
184  // as we need an reentrant scanner, we have to pass the pointer to the scanner with each yylex() call  // as we need an reentrant scanner, we have to pass the pointer to the scanner with each yylex() call
185  #define YYLEX_PARAM ((yyparse_param_t*) yyparse_param)->pScanner  #define YYLEX_PARAM ((yyparse_param_t*) yyparse_param)->pScanner
# Line 179  extern void yyrestart(FILE* input_file, Line 200  extern void yyrestart(FILE* input_file,
200  // we provide our own version of yyerror() so we don't have to link against the yacc library  // we provide our own version of yyerror() so we don't have to link against the yacc library
201  void yyerror(const char* s);  void yyerror(const char* s);
202    
 bool background;  
203    
204    
205  /* Enabling traces.  */  /* Enabling traces.  */
# Line 208  typedef int YYSTYPE; Line 228  typedef int YYSTYPE;
228    
229    
230  /* Line 214 of yacc.c.  */  /* Line 214 of yacc.c.  */
231  #line 211 "y.tab.c"  #line 232 "y.tab.c"
232    
233  #if ! defined (yyoverflow) || YYERROR_VERBOSE  #if ! defined (yyoverflow) || YYERROR_VERBOSE
234    
# Line 305  union yyalloc Line 325  union yyalloc
325  #endif  #endif
326    
327  /* YYFINAL -- State number of the termination state. */  /* YYFINAL -- State number of the termination state. */
328  #define YYFINAL  32  #define YYFINAL  30
329  /* YYLAST -- Last index in YYTABLE.  */  /* YYLAST -- Last index in YYTABLE.  */
330  #define YYLAST   219  #define YYLAST   306
331    
332  /* YYNTOKENS -- Number of terminals. */  /* YYNTOKENS -- Number of terminals. */
333  #define YYNTOKENS  50  #define YYNTOKENS  60
334  /* YYNNTS -- Number of nonterminals. */  /* YYNNTS -- Number of nonterminals. */
335  #define YYNNTS  29  #define YYNNTS  33
336  /* YYNRULES -- Number of rules. */  /* YYNRULES -- Number of rules. */
337  #define YYNRULES  89  #define YYNRULES  112
338  /* YYNRULES -- Number of states. */  /* YYNRULES -- Number of states. */
339  #define YYNSTATES  228  #define YYNSTATES  318
340    
341  /* YYTRANSLATE(YYLEX) -- Bison symbol number corresponding to YYLEX.  */  /* YYTRANSLATE(YYLEX) -- Bison symbol number corresponding to YYLEX.  */
342  #define YYUNDEFTOK  2  #define YYUNDEFTOK  2
343  #define YYMAXUTOK   304  #define YYMAXUTOK   314
344    
345  #define YYTRANSLATE(YYX)                                                \  #define YYTRANSLATE(YYX)                                                \
346    ((unsigned int) (YYX) <= YYMAXUTOK ? yytranslate[YYX] : YYUNDEFTOK)    ((unsigned int) (YYX) <= YYMAXUTOK ? yytranslate[YYX] : YYUNDEFTOK)
# Line 358  static const unsigned char yytranslate[] Line 378  static const unsigned char yytranslate[]
378        15,    16,    17,    18,    19,    20,    21,    22,    23,    24,        15,    16,    17,    18,    19,    20,    21,    22,    23,    24,
379        25,    26,    27,    28,    29,    30,    31,    32,    33,    34,        25,    26,    27,    28,    29,    30,    31,    32,    33,    34,
380        35,    36,    37,    38,    39,    40,    41,    42,    43,    44,        35,    36,    37,    38,    39,    40,    41,    42,    43,    44,
381        45,    46,    47,    48,    49        45,    46,    47,    48,    49,    50,    51,    52,    53,    54,
382          55,    56,    57,    58,    59
383  };  };
384    
385  #if YYDEBUG  #if YYDEBUG
# Line 366  static const unsigned char yytranslate[] Line 387  static const unsigned char yytranslate[]
387     YYRHS.  */     YYRHS.  */
388  static const unsigned short yyprhs[] =  static const unsigned short yyprhs[] =
389  {  {
390         0,     0,     3,     5,     9,    14,    15,    17,    19,    21,         0,     0,     3,     6,     7,     9,    11,    13,    15,    18,
391        23,    26,    29,    32,    35,    39,    43,    47,    51,    55,        21,    24,    27,    31,    35,    39,    43,    47,    51,    57,
392        59,    63,    69,    73,    77,    81,    87,    89,    91,    93,        61,    65,    69,    75,    77,    79,    81,    83,    85,    87,
393        95,    97,    99,   101,   103,   105,   107,   109,   111,   113,        89,    91,    93,    95,    97,    99,   101,   103,   105,   107,
394       115,   117,   123,   131,   141,   143,   149,   157,   167,   169,       113,   121,   131,   133,   139,   147,   157,   159,   161,   167,
395       175,   183,   189,   195,   201,   209,   219,   223,   229,   233,       173,   181,   191,   199,   209,   211,   217,   225,   231,   237,
396       237,   241,   245,   251,   259,   265,   271,   277,   283,   287,       243,   251,   261,   269,   279,   283,   287,   293,   297,   303,
397       293,   295,   297,   299,   305,   309,   311,   313,   315,   317,       307,   311,   315,   319,   323,   329,   337,   343,   353,   359,
398       319,   321,   323,   325,   327,   329,   331,   333,   335,   337       365,   371,   377,   383,   387,   393,   395,   397,   399,   401,
399         403,   409,   417,   421,   423,   425,   427,   429,   431,   433,
400         435,   437,   439,   441,   443,   445,   447,   449,   451,   453,
401         455,   457,   459
402  };  };
403    
404  /* YYRHS -- A `-1'-separated list of the rules' RHS. */  /* YYRHS -- A `-1'-separated list of the rules' RHS. */
405  static const yysigned_char yyrhs[] =  static const yysigned_char yyrhs[] =
406  {  {
407        51,     0,    -1,    52,    -1,    51,     8,    52,    -1,    51,        61,     0,    -1,    62,     8,    -1,    -1,    63,    -1,    64,
408         9,     8,    52,    -1,    -1,    53,    -1,    54,    -1,     1,        -1,     1,    -1,    10,    -1,    63,    10,    -1,    63,     7,
409        -1,    10,    -1,    53,    10,    -1,    53,     7,    -1,    53,        -1,    63,     5,    -1,    63,    92,    -1,    12,     7,    26,
410         5,    -1,    53,    78,    -1,    12,     7,    25,    -1,    13,        -1,    13,     7,    67,    -1,    14,     7,    69,    -1,    15,
411         7,    57,    -1,    14,     7,    59,    -1,    15,     7,    60,         7,    70,    -1,    16,     7,    75,    -1,    17,     7,    71,
412        -1,    16,     7,    65,    -1,    17,     7,    61,    -1,    18,        -1,    19,     7,    26,     7,    86,    -1,    20,     7,    68,
413         7,    61,    -1,    19,     7,    25,     7,    70,    -1,    20,        -1,    21,     7,    65,    -1,    22,     7,    66,    -1,    23,
414         7,    58,    -1,    21,     7,    55,    -1,    22,     7,    56,         7,    26,     7,    86,    -1,    23,    -1,    25,    -1,    30,
415        -1,    23,     7,    25,     7,    70,    -1,    24,    -1,    29,        -1,    34,    -1,    33,    -1,    32,    -1,    31,    -1,    59,
416        -1,    33,    -1,    32,    -1,    31,    -1,    30,    -1,    49,        -1,    30,    -1,    34,    -1,    33,    -1,    32,    -1,    31,
417        -1,    29,    -1,    33,    -1,    32,    -1,    31,    -1,    30,        -1,    59,    -1,    28,    -1,    52,    -1,    50,     7,    31,
418        -1,    49,    -1,    27,    -1,    28,    -1,    41,     7,    30,         7,    92,    -1,    51,     7,    31,     7,    92,     7,    92,
419         7,    78,    -1,    42,     7,    30,     7,    78,     7,    78,        -1,    51,     7,    31,     7,    92,     7,    92,     7,    73,
420        -1,    42,     7,    30,     7,    78,     7,    78,     7,    63,        -1,    29,    -1,    42,     7,    31,     7,    92,    -1,    43,
421        -1,    39,    -1,    38,     7,    30,     7,     5,    -1,    36,         7,    31,     7,    92,     7,    92,    -1,    43,     7,    31,
422         7,    30,     7,     5,     7,     5,    -1,    37,     7,    30,         7,    92,     7,    92,     7,    73,    -1,    40,    -1,    54,
423         7,     5,     7,     5,     7,    78,    -1,    29,    -1,    25,        -1,    39,     7,    31,     7,     5,    -1,    53,     7,    31,
424         7,    30,     7,    70,    -1,    25,     7,    31,     7,    64,         7,     5,    -1,    47,     7,    31,     7,     5,     7,     5,
425         7,    70,    -1,    25,     7,    32,     7,    70,    -1,    25,        -1,    56,     7,    31,     7,     5,     7,     5,     7,    92,
426         7,    33,     7,    70,    -1,    35,     7,    30,     7,    74,        -1,    37,     7,    31,     7,     5,     7,     5,    -1,    38,
427        -1,    40,     7,     5,     7,    78,    11,    77,    -1,    37,         7,    31,     7,     5,     7,     5,     7,    92,    -1,    30,
428         7,     5,     7,     5,     7,    78,    11,    77,    -1,    25,        -1,    26,     7,    31,     7,    86,    -1,    26,     7,    32,
429         7,    62,    -1,    38,     7,    78,     7,    63,    -1,    38,         7,    74,     7,    86,    -1,    26,     7,    33,     7,    86,
430         7,    78,    -1,    38,     7,     5,    -1,    34,     7,    66,        -1,    26,     7,    34,     7,    86,    -1,    36,     7,    31,
431        -1,    35,     7,    67,    -1,    38,     7,    70,     7,     5,         7,    88,    -1,    41,     7,     5,     7,    92,    11,    90,
432        -1,    36,     7,    70,     7,    72,     7,    72,    -1,    43,        -1,    38,     7,     5,     7,     5,     7,    92,    11,    90,
433         7,    70,     7,    75,    -1,    44,     7,    70,     7,    73,        -1,    55,     7,     5,     7,    92,    11,    90,    -1,    56,
434        -1,    45,     7,    70,     7,    68,    -1,    46,     7,    70,         7,     5,     7,     5,     7,    92,    11,    90,    -1,    26,
435         7,    69,    -1,    78,    11,    77,    -1,    63,     7,    78,         7,    72,    -1,    24,     7,    91,    -1,    39,     7,    92,
436        11,    77,    -1,    47,    -1,    48,    -1,    39,    -1,    76,         7,    73,    -1,    39,     7,    92,    -1,    53,     7,    92,
437         7,    71,     7,    70,    -1,    74,     7,    70,    -1,    78,         7,    73,    -1,    53,     7,    92,    -1,    39,     7,     5,
438        -1,     4,    -1,     5,    -1,     5,    -1,     5,    -1,     5,        -1,    53,     7,     5,    -1,    35,     7,    76,    -1,    36,
439        -1,     5,    -1,    78,    -1,     6,    -1,     6,    -1,     6,         7,    77,    -1,    39,     7,    86,     7,    78,    -1,    37,
440        -1,     5,    -1,     4,    -1,     3,    -1,    78,     3,    -1         7,    86,     7,    79,     7,    79,    -1,    44,     7,    86,
441           7,    80,    -1,    45,     7,    86,     7,    81,     7,    82,
442           7,    83,    -1,    53,     7,    86,     7,    81,    -1,    47,
443           7,    86,     7,    82,    -1,    48,     7,    86,     7,    83,
444          -1,    46,     7,    86,     7,    84,    -1,    49,     7,    86,
445           7,    85,    -1,    92,    11,    90,    -1,    73,     7,    92,
446          11,    90,    -1,    57,    -1,    58,    -1,    40,    -1,    54,
447          -1,    30,    -1,    89,     7,    87,     7,    86,    -1,    18,
448           7,    89,     7,    87,     7,    86,    -1,    88,     7,    86,
449          -1,     5,    -1,     5,    -1,    92,    -1,     5,    -1,     5,
450          -1,     5,    -1,    92,    -1,     4,    -1,     5,    -1,     5,
451          -1,     5,    -1,    92,    -1,     6,    -1,     6,    -1,     5,
452          -1,     4,    -1,     5,    -1,    92,    -1,     3,    -1,    92,
453           3,    -1
454  };  };
455    
456  /* YYRLINE[YYN] -- source line where rule number YYN was defined.  */  /* YYRLINE[YYN] -- source line where rule number YYN was defined.  */
457  static const unsigned char yyrline[] =  static const unsigned char yyrline[] =
458  {  {
459         0,    78,    78,    79,    80,    83,    84,    85,    86,    89,         0,    82,    82,    84,    85,    86,    87,    90,    91,    92,
460        90,    91,    92,    93,    96,    97,    98,    99,   100,   101,        93,    94,    97,    98,    99,   100,   101,   102,   103,   104,
461       102,   103,   104,   105,   106,   107,   108,   111,   112,   113,       105,   106,   107,   108,   109,   112,   113,   114,   115,   116,
462       114,   115,   116,   119,   120,   121,   122,   123,   124,   127,       117,   120,   121,   122,   123,   124,   125,   128,   129,   130,
463       128,   129,   130,   131,   132,   133,   134,   135,   136,   137,       131,   132,   133,   134,   135,   136,   137,   138,   139,   140,
464       138,   139,   140,   141,   144,   145,   146,   149,   150,   153,       141,   142,   143,   144,   145,   146,   147,   148,   149,   150,
465       156,   157,   160,   161,   162,   163,   164,   165,   168,   169,       153,   154,   155,   156,   157,   158,   161,   162,   163,   164,
466       172,   173,   176,   179,   182,   185,   188,   189,   192,   195,       167,   168,   171,   172,   175,   176,   177,   178,   179,   180,
467       198,   201,   204,   207,   210,   213,   214,   215,   218,   219       181,   182,   183,   186,   187,   190,   191,   194,   195,   196,
468         199,   200,   203,   206,   209,   212,   215,   218,   221,   224,
469         227,   228,   231,   234,   237,   240,   243,   244,   245,   248,
470         249,   252,   253
471  };  };
472  #endif  #endif
473    
# Line 438  static const char *const yytname[] = Line 478  static const char *const yytname[] =
478  {  {
479    "$end", "error", "$undefined", "CHAR", "DOTNUM", "NUMBER", "STRINGVAL",    "$end", "error", "$undefined", "CHAR", "DOTNUM", "NUMBER", "STRINGVAL",
480    "SP", "LF", "CR", "HASH", "EQ", "ADD", "GET", "CREATE", "DESTROY",    "SP", "LF", "CR", "HASH", "EQ", "ADD", "GET", "CREATE", "DESTROY",
481    "LIST", "LOAD", "LOAD_BACKGROUND", "REMOVE", "SET", "SUBSCRIBE",    "LIST", "LOAD", "NON_MODAL", "REMOVE", "SET", "SUBSCRIBE",
482    "UNSUBSCRIBE", "RESET", "QUIT", "CHANNEL", "NOTIFICATION",    "UNSUBSCRIBE", "RESET", "ECHO", "QUIT", "CHANNEL", "NOTIFICATION",
483    "AVAILABLE_ENGINES", "AVAILABLE_AUDIO_OUTPUT_DRIVERS", "CHANNELS",    "AVAILABLE_ENGINES", "AVAILABLE_AUDIO_OUTPUT_DRIVERS", "CHANNELS",
484    "INFO", "BUFFER_FILL", "STREAM_COUNT", "VOICE_COUNT", "INSTRUMENT",    "INFO", "BUFFER_FILL", "STREAM_COUNT", "VOICE_COUNT", "INSTRUMENT",
485    "ENGINE", "AUDIO_OUTPUT_CHANNEL", "AUDIO_OUTPUT_CHANNEL_PARAMETER",    "ENGINE", "AUDIO_OUTPUT_CHANNEL", "AUDIO_OUTPUT_CHANNEL_PARAMETER",
486    "AUDIO_OUTPUT_DEVICE", "AUDIO_OUTPUT_DEVICES",    "AUDIO_OUTPUT_DEVICE", "AUDIO_OUTPUT_DEVICES",
487    "AUDIO_OUTPUT_DEVICE_PARAMETER", "AUDIO_OUTPUT_DRIVER",    "AUDIO_OUTPUT_DEVICE_PARAMETER", "AUDIO_OUTPUT_DRIVER",
488    "AUDIO_OUTPUT_DRIVER_PARAMETER", "MIDI_INPUT_PORT",    "AUDIO_OUTPUT_DRIVER_PARAMETER", "AUDIO_OUTPUT_TYPE", "MIDI_INPUT",
489    "MIDI_INPUT_CHANNEL", "MIDI_INPUT_TYPE", "VOLUME", "BYTES",    "MIDI_INPUT_TYPE", "MIDI_INPUT_PORT", "MIDI_INPUT_CHANNEL", "VOLUME",
490    "PERCENTAGE", "MISCELLANEOUS", "$accept", "input", "line", "comment",    "MIDI_INPUT_DRIVER", "MIDI_INPUT_DRIVER_PARAMETER",
491    "command", "subscribe_event", "unsubscribe_event", "get_instruction",    "AVAILABLE_MIDI_INPUT_DRIVERS", "MIDI_INPUT_DEVICE",
492    "set_instruction", "create_instruction", "destroy_instruction",    "MIDI_INPUT_DEVICES", "MIDI_INPUT_DEVICE_PARAMETER",
493    "load_instruction", "set_chan_instruction", "key_val_list",    "MIDI_INPUT_PORT_PARAMETER", "BYTES", "PERCENTAGE", "MISCELLANEOUS",
494    "buffer_size_type", "list_instruction", "load_instr_args",    "$accept", "input", "line", "comment", "command", "subscribe_event",
495    "load_engine_args", "midi_input_type", "volume", "sampler_channel",    "unsubscribe_event", "get_instruction", "set_instruction",
496    "instrument_index", "audio_output_channel", "midi_input_channel",    "create_instruction", "destroy_instruction", "load_instruction",
497    "engine_name", "midi_input_port", "filename", "param_val", "string", 0    "set_chan_instruction", "key_val_list", "buffer_size_type",
498      "list_instruction", "load_instr_args", "load_engine_args",
499      "audio_output_device", "audio_output_channel", "audio_output_type",
500      "midi_input_device", "midi_input_port", "midi_input_channel",
501      "midi_input_type", "volume", "sampler_channel", "instrument_index",
502      "engine_name", "filename", "param_val", "boolean", "string", 0
503  };  };
504  #endif  #endif
505    
# Line 467  static const unsigned short yytoknum[] = Line 512  static const unsigned short yytoknum[] =
512       265,   266,   267,   268,   269,   270,   271,   272,   273,   274,       265,   266,   267,   268,   269,   270,   271,   272,   273,   274,
513       275,   276,   277,   278,   279,   280,   281,   282,   283,   284,       275,   276,   277,   278,   279,   280,   281,   282,   283,   284,
514       285,   286,   287,   288,   289,   290,   291,   292,   293,   294,       285,   286,   287,   288,   289,   290,   291,   292,   293,   294,
515       295,   296,   297,   298,   299,   300,   301,   302,   303,   304       295,   296,   297,   298,   299,   300,   301,   302,   303,   304,
516         305,   306,   307,   308,   309,   310,   311,   312,   313,   314
517  };  };
518  # endif  # endif
519    
520  /* YYR1[YYN] -- Symbol number of symbol that rule YYN derives.  */  /* YYR1[YYN] -- Symbol number of symbol that rule YYN derives.  */
521  static const unsigned char yyr1[] =  static const unsigned char yyr1[] =
522  {  {
523         0,    50,    51,    51,    51,    52,    52,    52,    52,    53,         0,    60,    61,    62,    62,    62,    62,    63,    63,    63,
524        53,    53,    53,    53,    54,    54,    54,    54,    54,    54,        63,    63,    64,    64,    64,    64,    64,    64,    64,    64,
525        54,    54,    54,    54,    54,    54,    54,    55,    55,    55,        64,    64,    64,    64,    64,    65,    65,    65,    65,    65,
526        55,    55,    55,    56,    56,    56,    56,    56,    56,    57,        65,    66,    66,    66,    66,    66,    66,    67,    67,    67,
527        57,    57,    57,    57,    57,    57,    57,    57,    57,    57,        67,    67,    67,    67,    67,    67,    67,    67,    67,    67,
528        57,    57,    57,    57,    58,    58,    58,    59,    59,    60,        67,    67,    67,    67,    67,    67,    67,    67,    67,    67,
529        61,    61,    62,    62,    62,    62,    62,    62,    63,    63,        68,    68,    68,    68,    68,    68,    69,    69,    69,    69,
530        64,    64,    65,    66,    67,    68,    69,    69,    70,    71,        70,    70,    71,    71,    72,    72,    72,    72,    72,    72,
531        72,    73,    74,    75,    76,    77,    77,    77,    78,    78        72,    72,    72,    73,    73,    74,    74,    75,    75,    75,
532          76,    76,    77,    78,    79,    80,    81,    82,    83,    84,
533          85,    85,    86,    87,    88,    89,    90,    90,    90,    91,
534          91,    92,    92
535  };  };
536    
537  /* YYR2[YYN] -- Number of symbols composing right hand side of rule YYN.  */  /* YYR2[YYN] -- Number of symbols composing right hand side of rule YYN.  */
538  static const unsigned char yyr2[] =  static const unsigned char yyr2[] =
539  {  {
540         0,     2,     1,     3,     4,     0,     1,     1,     1,     1,         0,     2,     2,     0,     1,     1,     1,     1,     2,     2,
541         2,     2,     2,     2,     3,     3,     3,     3,     3,     3,         2,     2,     3,     3,     3,     3,     3,     3,     5,     3,
542         3,     5,     3,     3,     3,     5,     1,     1,     1,     1,         3,     3,     5,     1,     1,     1,     1,     1,     1,     1,
543           1,     1,     1,     1,     1,     1,     1,     1,     1,     5,
544           7,     9,     1,     5,     7,     9,     1,     1,     5,     5,
545           7,     9,     7,     9,     1,     5,     7,     5,     5,     5,
546           7,     9,     7,     9,     3,     3,     5,     3,     5,     3,
547           3,     3,     3,     3,     5,     7,     5,     9,     5,     5,
548           5,     5,     5,     3,     5,     1,     1,     1,     1,     1,
549           5,     7,     3,     1,     1,     1,     1,     1,     1,     1,
550         1,     1,     1,     1,     1,     1,     1,     1,     1,     1,         1,     1,     1,     1,     1,     1,     1,     1,     1,     1,
551         1,     5,     7,     9,     1,     5,     7,     9,     1,     5,         1,     1,     2
        7,     5,     5,     5,     7,     9,     3,     5,     3,     3,  
        3,     3,     5,     7,     5,     5,     5,     5,     3,     5,  
        1,     1,     1,     5,     3,     1,     1,     1,     1,     1,  
        1,     1,     1,     1,     1,     1,     1,     1,     1,     2  
552  };  };
553    
554  /* YYDEFACT[STATE-NAME] -- Default rule to reduce with in state  /* YYDEFACT[STATE-NAME] -- Default rule to reduce with in state
# Line 504  static const unsigned char yyr2[] = Line 556  static const unsigned char yyr2[] =
556     means the default is an error.  */     means the default is an error.  */
557  static const unsigned char yydefact[] =  static const unsigned char yydefact[] =
558  {  {
559         0,     8,     9,     0,     0,     0,     0,     0,     0,     0,         0,     6,     7,     0,     0,     0,     0,     0,     0,     0,
560         0,     0,     0,     0,     0,    26,     0,     2,     6,     7,         0,     0,     0,    23,    24,     0,     0,     4,     5,     0,
561         0,     0,     0,     0,     0,     0,     0,     0,     0,     0,         0,     0,     0,     0,     0,     0,     0,     0,     0,     0,
562         0,     0,     1,     0,     0,    88,    12,    11,    10,    13,         1,     2,   111,    10,     9,     8,    11,    12,     0,    37,
563        14,     0,    39,    40,    48,     0,     0,     0,     0,    44,        42,    54,     0,     0,     0,     0,    46,     0,     0,     0,
564         0,     0,    15,     0,    16,     0,    17,    72,    18,     0,         0,     0,    38,     0,    47,     0,    13,     0,     0,    14,
565         0,    19,    20,     0,     0,     0,     0,    22,    27,    31,         0,     0,    15,    89,    87,    88,    16,     0,     0,    17,
566        30,    29,    28,    32,    23,    33,    37,    36,    35,    34,         0,     0,     0,     0,     0,     0,     0,    19,    25,    29,
567        38,    24,     0,     3,     0,    89,     0,     0,     0,     0,        28,    27,    26,    30,    20,    31,    35,    34,    33,    32,
568          36,    21,     0,   112,     0,     0,     0,     0,     0,     0,
569         0,     0,     0,     0,     0,     0,     0,     0,     0,     0,         0,     0,     0,     0,     0,     0,     0,     0,     0,     0,
        0,     0,     4,     0,     0,     0,     0,     0,     0,     0,  
        0,     0,     0,    58,    59,    84,    60,     0,    61,     0,  
       82,    78,    21,     0,     0,     0,     0,     0,     0,    56,  
        0,     0,    25,     0,     0,     0,     0,     0,     0,     0,  
570         0,     0,     0,     0,     0,     0,     0,     0,     0,     0,         0,     0,     0,     0,     0,     0,     0,     0,     0,     0,
        0,     0,     0,     0,    49,    70,    71,     0,    51,    52,  
       53,     0,     0,    45,    41,     0,    57,     0,    79,     0,  
       74,     0,     0,     0,     0,     0,     0,     0,     0,     0,  
571         0,     0,     0,     0,     0,     0,     0,     0,     0,     0,         0,     0,     0,     0,     0,     0,     0,     0,     0,     0,
572         0,     0,     0,     0,    50,    46,     0,    42,     0,    87,         0,     0,     0,     0,     0,    67,    69,    70,    71,   105,
573        86,    85,    68,    73,    80,     0,    62,    83,    64,    81,         0,    72,     0,    73,     0,   104,   102,    18,   109,    65,
574        65,    66,    75,    76,    77,    67,     0,    54,     0,     0,       110,     0,     0,     0,     0,     0,     0,     0,     0,     0,
575         0,     0,     0,    47,    43,    69,    63,    55        64,     0,     0,     0,     0,    22,     0,     0,     0,     0,
576           0,     0,     0,     0,     0,     0,     0,     0,     0,     0,
577           0,     0,     0,     0,     0,     0,     0,     0,     0,     0,
578           0,     0,     0,     0,     0,     0,     0,     0,     0,    55,
579          85,    86,     0,    57,    58,    59,     0,     0,    48,    43,
580           0,     0,    39,     0,    49,     0,    66,     0,    68,     0,
581         103,     0,    92,     0,     0,     0,     0,     0,     0,     0,
582           0,     0,     0,     0,     0,     0,     0,     0,     0,     0,
583           0,     0,     0,     0,     0,     0,     0,     0,     0,     0,
584           0,     0,     0,     0,     0,     0,     0,     0,     0,     0,
585          56,    52,     0,    44,    50,    40,     0,     0,   108,   107,
586         106,    83,     0,    90,    94,     0,    93,    74,    76,    95,
587          96,     0,    81,    99,    97,    79,    98,    80,   100,   101,
588          82,    78,     0,    60,    62,     0,     0,     0,     0,     0,
589           0,     0,     0,     0,     0,     0,    53,    45,    41,    51,
590          84,    91,    75,     0,    61,    63,     0,    77
591  };  };
592    
593  /* YYDEFGOTO[NTERM-NUM]. */  /* YYDEFGOTO[NTERM-NUM]. */
594  static const short yydefgoto[] =  static const short yydefgoto[] =
595  {  {
596        -1,    16,    17,    18,    19,    74,    81,    52,    67,    54,        -1,    15,    16,    17,    18,    84,    91,    56,    77,    59,
597        56,    61,   129,   166,   157,    58,   116,   118,   211,   215,        62,    69,   160,   216,   202,    66,   141,   143,   277,   275,
598       122,   169,   205,   210,   119,   208,   117,   202,   120       278,   281,   285,   287,   282,   290,   147,   221,   144,   142,
599         271,   149,   217
600  };  };
601    
602  /* YYPACT[STATE-NUM] -- Index in YYTABLE of the portion describing  /* YYPACT[STATE-NUM] -- Index in YYTABLE of the portion describing
603     STATE-NUM.  */     STATE-NUM.  */
604  #define YYPACT_NINF -191  #define YYPACT_NINF -252
605  static const short yypact[] =  static const short yypact[] =
606  {  {
607         4,  -191,  -191,     2,    22,    24,    37,    85,    87,    96,        85,  -252,  -252,    24,    39,    54,    73,    81,   105,   108,
608        99,   107,   109,   110,   111,  -191,    34,  -191,    97,  -191,       128,   144,   147,   148,  -252,    92,   109,   124,  -252,   126,
609       -14,    45,   -23,    77,    80,   -27,   -27,    95,    27,     8,       -14,   -26,    -9,   -22,   110,   133,   -21,    25,    32,   136,
610        29,   101,  -191,     4,   113,  -191,  -191,  -191,  -191,   119,      -252,  -252,  -252,  -252,  -252,  -252,   153,  -252,   156,  -252,
611      -191,   120,  -191,  -191,  -191,   121,   122,   123,   124,  -191,      -252,  -252,   157,   158,   159,   160,  -252,   161,   162,   163,
612       125,   126,  -191,   127,  -191,   129,  -191,  -191,  -191,   130,       164,   165,  -252,   166,  -252,   167,  -252,   168,   169,  -252,
613       131,  -191,  -191,   132,   133,   134,   135,  -191,  -191,  -191,       170,   171,  -252,  -252,  -252,  -252,  -252,   174,   175,  -252,
614      -191,  -191,  -191,  -191,  -191,  -191,  -191,  -191,  -191,  -191,       177,   178,   179,   180,   181,   182,   183,  -252,  -252,  -252,
615      -191,  -191,   136,  -191,     4,  -191,    78,   114,   115,   116,      -252,  -252,  -252,  -252,  -252,  -252,  -252,  -252,  -252,  -252,
616       117,   118,   128,   146,   145,   147,   146,   149,    52,   150,      -252,  -252,   184,  -252,   107,   172,   173,   176,   185,   186,
617       151,   149,  -191,   144,   152,   153,   154,   155,   156,   159,       187,   188,   189,   190,   192,   194,   191,   191,   193,   195,
618       160,   161,   162,     3,  -191,  -191,  -191,   163,  -191,   164,         3,   191,   196,    78,    77,   197,   200,   201,   203,   196,
619       119,  -191,  -191,   166,   168,   169,   170,   171,   172,  -191,       202,   204,   205,   206,   207,   208,   220,   221,   222,   223,
620       173,   174,  -191,   149,    18,   149,   149,   146,   177,   178,       224,   226,   228,   229,   230,    38,    40,  -252,  -252,  -252,
621       179,   146,   146,   146,   180,   149,   149,   149,   149,   149,       231,  -252,   233,  -252,   234,   153,  -252,  -252,  -252,  -252,
622       149,   149,   181,   146,  -191,  -191,  -191,   182,  -191,  -191,       153,   236,   237,   238,   239,   240,   241,   242,   243,   244,
623      -191,   183,   184,  -191,   119,    86,   185,    60,  -191,   186,      -252,   245,   246,   247,   248,  -252,   196,    90,   196,   196,
624      -191,   187,   188,   189,   190,   191,   192,   195,    65,   149,       191,   251,   252,   253,   191,   191,   254,   191,   191,   255,
625       198,   199,   146,   146,    50,   149,   200,   201,   202,   204,       256,   191,   191,   257,   259,   196,   196,   196,   196,   196,
626       146,   108,   146,    50,  -191,  -191,   203,    98,    66,  -191,       196,   196,   196,   196,   196,   260,   191,   191,   261,  -252,
627      -191,  -191,  -191,  -191,  -191,   205,  -191,  -191,  -191,  -191,      -252,  -252,   262,  -252,  -252,  -252,   263,   264,  -252,   153,
628      -191,  -191,   119,  -191,  -191,  -191,    88,  -191,   146,   146,        75,   265,   153,   106,  -252,   266,   267,    -1,   267,   268,
629        50,   200,    50,   119,   185,  -191,  -191,  -191      -252,   269,  -252,   270,   271,   273,   274,   276,   277,   278,
630         279,   280,   281,     8,    49,   282,   196,   285,   286,   191,
631         287,   191,   288,   191,   138,   259,   196,   289,   290,   191,
632         291,   191,   292,   293,   145,   291,   191,   138,   138,   191,
633        -252,  -252,   294,   129,  -252,   130,   295,    74,  -252,  -252,
634        -252,  -252,   296,  -252,  -252,   297,  -252,  -252,  -252,   153,
635        -252,   298,  -252,   153,  -252,  -252,  -252,  -252,  -252,  -252,
636        -252,  -252,    76,  -252,  -252,   100,   191,   191,   191,   191,
637         138,   196,   289,   292,   138,   138,   153,   267,   267,   153,
638        -252,  -252,  -252,   299,  -252,  -252,   293,  -252
639  };  };
640    
641  /* YYPGOTO[NTERM-NUM].  */  /* YYPGOTO[NTERM-NUM].  */
642  static const short yypgoto[] =  static const short yypgoto[] =
643  {  {
644      -191,  -191,   -31,  -191,  -191,  -191,  -191,  -191,  -191,  -191,      -252,  -252,  -252,  -252,  -252,  -252,  -252,  -252,  -252,  -252,
645      -191,   193,  -191,   -67,  -191,  -191,  -191,  -191,  -191,  -191,      -252,  -252,  -252,  -178,  -252,  -252,  -252,  -252,  -252,  -110,
646      -100,  -191,   -64,  -191,    51,  -191,  -191,  -190,   -18      -252,   -62,  -108,  -120,  -252,  -252,  -118,   -48,    29,    27,
647        -251,  -252,   -17
648  };  };
649    
650  /* YYTABLE[YYPACT[STATE-NUM]].  What to do in state STATE-NUM.  If  /* YYTABLE[YYPACT[STATE-NUM]].  What to do in state STATE-NUM.  If
651     positive, shift that token.  If negative, reduce the rule which     positive, shift that token.  If negative, reduce the rule which
652     number is the opposite.  If zero, do what YYDEFACT says.     number is the opposite.  If zero, do what YYDEFACT says.
653     If YYTABLE_NINF, syntax error.  */     If YYTABLE_NINF, syntax error.  */
654  #define YYTABLE_NINF -6  #define YYTABLE_NINF -4
655  static const short yytable[] =  static const short yytable[] =
656  {  {
657        39,   132,    83,   217,    -5,     1,    85,    59,    60,    20,        36,   165,    93,    71,   218,    72,   293,   294,    63,   139,
658       143,    40,    -5,    -5,     2,    53,     3,     4,     5,     6,       244,    93,    38,    57,    39,    40,    41,    73,    64,   257,
659         7,     8,     9,    10,    11,    12,    13,    14,    15,    21,        74,   140,    42,    43,    44,    45,    46,    58,    47,    48,
660       225,    22,   227,   154,    32,   158,   159,    68,    69,    70,        60,    19,    65,    49,    75,    76,    50,    51,    52,    53,
661        71,    72,    33,    34,    23,   170,   171,   172,   173,   174,        54,    93,    55,    93,    61,   181,    20,   182,   199,   310,
662       175,   176,    64,   102,   199,   200,   201,    73,    75,    76,       203,   204,    93,   314,   315,    78,    79,    80,    81,    82,
663        77,    78,    79,    85,    65,   155,   156,    66,    85,    85,       258,    21,    85,    86,    87,    88,    89,   222,   223,   224,
664        41,   184,    42,    43,    44,   113,   193,   220,    80,   194,       225,   226,   227,   228,   229,   230,   231,    93,    93,    93,
665        45,    46,    47,    48,    49,   203,    50,    51,   123,    85,        22,    32,   239,   148,    83,   300,     1,   304,    23,   135,
666       124,    85,    24,   182,    25,   125,   126,   127,   128,   222,       136,    90,    30,    -3,   145,     2,   150,     3,     4,     5,
667        35,    85,    36,    26,    37,   219,    27,    38,   103,   104,         6,     7,     8,    93,     9,    10,    11,    12,    13,    93,
668       105,   106,   213,   214,    28,    55,    29,    30,    31,    57,        14,   305,    24,   241,   151,    25,   152,    31,   260,   307,
669        63,    84,    85,   164,   165,   167,    82,    86,    87,    88,       308,   153,   154,   155,   156,   157,   158,    32,   273,    33,
670        89,    90,    91,    92,    93,   178,    94,    95,    96,    97,       159,    34,    93,    93,    35,    26,   297,   298,   120,   121,
671        98,    99,   100,   101,   107,   108,   109,   110,   111,    35,       122,   123,   268,   269,   270,    67,    68,   200,   201,   288,
672       114,   133,   224,   115,   121,   130,   131,   226,   112,   134,       289,    27,    37,   145,    28,    29,    93,   209,   210,    70,
673       135,   136,   137,   138,   197,   198,   139,   140,   141,   142,       212,   213,    92,    94,    95,    96,    97,    98,    99,   100,
674       144,   145,   212,   146,   216,   147,   148,   149,   150,   151,       101,   102,   103,   104,   105,   106,   107,   108,   109,   233,
675       152,   153,   161,   162,   163,   168,   177,     0,   160,   179,       234,   110,   111,   311,   112,   113,   114,   115,   116,   117,
676       180,   181,   183,   185,   186,   187,   188,   189,   190,   191,       118,   119,   312,   291,    32,   313,   317,   272,   137,   205,
677       223,   167,   192,   195,   196,   204,   206,     0,   207,   209,       138,   146,   161,   124,   125,   162,   163,   126,   164,   166,
678       218,     0,   221,     0,     0,     0,     0,     0,     0,    62       219,   167,   168,   169,   170,   171,   127,   128,   129,   130,
679         131,   132,   263,   133,   265,   134,   267,   172,   173,   174,
680         175,   176,   279,   177,   283,   178,   179,   180,   183,   292,
681         184,   185,   295,   186,   187,   188,   189,   190,   191,   192,
682         193,   194,   195,   196,   197,   198,   206,   207,   208,   211,
683         214,   215,     0,   139,   220,   232,   235,     0,     0,   236,
684         237,   238,   240,   242,   243,   245,   246,   247,   248,   306,
685         249,   250,   309,   251,   252,   253,   254,   255,   256,   259,
686         261,   262,   264,   266,   274,   276,   280,   284,   286,     0,
687           0,   296,   299,   301,   302,   303,   316
688  };  };
689    
690  static const short yycheck[] =  static const short yycheck[] =
691  {  {
692        18,   101,    33,   193,     0,     1,     3,    34,    35,     7,        17,   119,     3,    24,   182,    26,   257,   258,    30,     6,
693         7,    25,     8,     9,    10,    38,    12,    13,    14,    15,        11,     3,    26,    39,    28,    29,    30,    38,    40,    11,
694        16,    17,    18,    19,    20,    21,    22,    23,    24,     7,        41,    18,    36,    37,    38,    39,    40,    53,    42,    43,
695       220,     7,   222,   133,     0,   135,   136,    29,    30,    31,        39,     7,    54,    47,    55,    56,    50,    51,    52,    53,
696        32,    33,     8,     9,     7,   145,   146,   147,   148,   149,        54,     3,    56,     3,    53,     7,     7,     7,   166,   300,
697       150,   151,    25,    84,     4,     5,     6,    49,    29,    30,       168,   169,     3,   304,   305,    30,    31,    32,    33,    34,
698        31,    32,    33,     3,    37,    47,    48,    40,     3,     3,        11,     7,    30,    31,    32,    33,    34,   185,   186,   187,
699        25,    11,    27,    28,    29,    93,    11,    11,    49,   179,       188,   189,   190,   191,   192,   193,   194,     3,     3,     3,
700        35,    36,    37,    38,    39,   185,    41,    42,    36,     3,         7,     3,     7,     5,    59,    11,     1,    11,     7,   106,
701        38,     3,     7,     7,     7,    43,    44,    45,    46,    11,       107,    59,     0,     8,   111,    10,   113,    12,    13,    14,
702         3,     3,     5,     7,     7,     7,     7,    10,    30,    31,        15,    16,    17,     3,    19,    20,    21,    22,    23,     3,
703        32,    33,     4,     5,     7,    38,     7,     7,     7,    39,        25,    11,     7,     7,    37,     7,    39,     8,   236,   297,
704        25,     8,     3,   141,   142,   143,    25,     7,     7,     7,       298,    44,    45,    46,    47,    48,    49,     3,   246,     5,
705         7,     7,     7,     7,     7,   153,     7,     7,     7,     7,        53,     7,     3,     3,    10,     7,     7,     7,    31,    32,
706         7,     7,     7,     7,    30,    30,    30,    30,    30,     3,        33,    34,     4,     5,     6,    35,    36,    57,    58,     4,
707         5,     7,   219,     6,     5,     5,     5,   221,    30,     7,         5,     7,    26,   170,     7,     7,     3,   174,   175,    26,
708         7,     7,     7,     7,   182,   183,     7,     7,     7,     7,       177,   178,    26,     7,     7,     7,     7,     7,     7,     7,
709         7,     7,   190,     7,   192,     7,     7,     7,     7,     7,         7,     7,     7,     7,     7,     7,     7,     7,     7,   196,
710         7,     7,     5,     5,     5,     5,     5,    -1,   137,     7,       197,     7,     7,   301,     7,     7,     7,     7,     7,     7,
711         7,     7,     7,     7,     7,     7,     7,     7,     7,     7,         7,     7,   302,   255,     3,   303,   316,   245,     5,   170,
712       218,   219,     7,     5,     5,     5,     5,    -1,     6,     5,         5,     5,     5,    31,    31,     5,     5,    31,     5,     7,
713         7,    -1,     7,    -1,    -1,    -1,    -1,    -1,    -1,    26       183,     7,     7,     7,     7,     7,    31,    31,    31,    31,
714          31,    31,   239,    31,   241,    31,   243,     7,     7,     7,
715           7,     7,   249,     7,   251,     7,     7,     7,     7,   256,
716           7,     7,   259,     7,     7,     7,     7,     7,     7,     7,
717           7,     7,     7,     7,     7,     7,     5,     5,     5,     5,
718           5,     5,    -1,     6,     5,     5,     5,    -1,    -1,     7,
719           7,     7,     7,     7,     7,     7,     7,     7,     7,   296,
720           7,     7,   299,     7,     7,     7,     7,     7,     7,     7,
721           5,     5,     5,     5,     5,     5,     5,     5,     5,    -1,
722          -1,     7,     7,     7,     7,     7,     7
723  };  };
724    
725  /* YYSTOS[STATE-NUM] -- The (internal number of the) accessing  /* YYSTOS[STATE-NUM] -- The (internal number of the) accessing
726     symbol of state STATE-NUM.  */     symbol of state STATE-NUM.  */
727  static const unsigned char yystos[] =  static const unsigned char yystos[] =
728  {  {
729         0,     1,    10,    12,    13,    14,    15,    16,    17,    18,         0,     1,    10,    12,    13,    14,    15,    16,    17,    19,
730        19,    20,    21,    22,    23,    24,    51,    52,    53,    54,        20,    21,    22,    23,    25,    61,    62,    63,    64,     7,
731           7,     7,     7,     7,     7,     7,     7,     7,     7,     7,
732           0,     8,     3,     5,     7,    10,    92,    26,    26,    28,
733          29,    30,    36,    37,    38,    39,    40,    42,    43,    47,
734          50,    51,    52,    53,    54,    56,    67,    39,    53,    69,
735          39,    53,    70,    30,    40,    54,    75,    35,    36,    71,
736          26,    24,    26,    38,    41,    55,    56,    68,    30,    31,
737          32,    33,    34,    59,    65,    30,    31,    32,    33,    34,
738          59,    66,    26,     3,     7,     7,     7,     7,     7,     7,
739         7,     7,     7,     7,     7,     7,     7,     7,     7,     7,         7,     7,     7,     7,     7,     7,     7,     7,     7,     7,
        7,     7,     0,     8,     9,     3,     5,     7,    10,    78,  
       25,    25,    27,    28,    29,    35,    36,    37,    38,    39,  
       41,    42,    57,    38,    59,    38,    60,    39,    65,    34,  
       35,    61,    61,    25,    25,    37,    40,    58,    29,    30,  
       31,    32,    33,    49,    55,    29,    30,    31,    32,    33,  
       49,    56,    25,    52,     8,     3,     7,     7,     7,     7,  
740         7,     7,     7,     7,     7,     7,     7,     7,     7,     7,         7,     7,     7,     7,     7,     7,     7,     7,     7,     7,
741         7,     7,    52,    30,    31,    32,    33,    30,    30,    30,        31,    32,    33,    34,    31,    31,    31,    31,    31,    31,
742        30,    30,    30,    78,     5,     6,    66,    76,    67,    74,        31,    31,    31,    31,    31,    92,    92,     5,     5,     6,
743        78,     5,    70,    36,    38,    43,    44,    45,    46,    62,        18,    76,    89,    77,    88,    92,     5,    86,     5,    91,
744         5,     5,    70,     7,     7,     7,     7,     7,     7,     7,        92,    37,    39,    44,    45,    46,    47,    48,    49,    53,
745          72,     5,     5,     5,     5,    86,     7,     7,     7,     7,
746         7,     7,     7,     7,     7,     7,     7,     7,     7,     7,         7,     7,     7,     7,     7,     7,     7,     7,     7,     7,
747         7,     7,     7,     7,    70,    47,    48,    64,    70,    70,         7,     7,     7,     7,     7,     7,     7,     7,     7,     7,
748        74,     5,     5,     5,    78,    78,    63,    78,     5,    71,         7,     7,     7,     7,     7,     7,     7,     7,     7,    86,
749        70,    70,    70,    70,    70,    70,    70,     5,    78,     7,        57,    58,    74,    86,    86,    88,     5,     5,     5,    92,
750          92,     5,    92,    92,     5,     5,    73,    92,    73,    89,
751           5,    87,    86,    86,    86,    86,    86,    86,    86,    86,
752          86,    86,     5,    92,    92,     5,     7,     7,     7,     7,
753         7,     7,     7,     7,    11,     7,     7,     7,     7,     7,         7,     7,     7,     7,    11,     7,     7,     7,     7,     7,
754         7,     7,     7,    11,    70,     5,     5,    78,    78,     4,         7,     7,     7,     7,     7,     7,     7,    11,    11,     7,
755         5,     6,    77,    70,     5,    72,     5,     6,    75,     5,        86,     5,     5,    92,     5,    92,     5,    92,     4,     5,
756        73,    68,    78,     4,     5,    69,    78,    77,     7,     7,         6,    90,    87,    86,     5,    79,     5,    78,    80,    92,
757        11,     7,    11,    78,    63,    77,    72,    77         5,    81,    84,    92,     5,    82,     5,    83,     4,     5,
758          85,    81,    92,    90,    90,    92,     7,     7,     7,     7,
759          11,     7,     7,     7,    11,    11,    92,    73,    73,    92,
760          90,    86,    79,    82,    90,    90,     7,    83
761  };  };
762    
763  #if ! defined (YYSIZE_T) && defined (__SIZE_TYPE__)  #if ! defined (YYSIZE_T) && defined (__SIZE_TYPE__)
# Line 1268  yyreduce: Line 1367  yyreduce:
1367    YY_REDUCE_PRINT (yyn);    YY_REDUCE_PRINT (yyn);
1368    switch (yyn)    switch (yyn)
1369      {      {
1370          case 7:          case 3:
1371    #line 84 "lscp.y"
1372        { return LSCP_DONE; }
1373        break;
1374    
1375      case 4:
1376  #line 85 "lscp.y"  #line 85 "lscp.y"
1377      { LSCPSERVER->AnswerClient(yyvsp[0].String); }      { return LSCP_DONE; }
1378      break;      break;
1379    
1380    case 8:    case 5:
1381  #line 86 "lscp.y"  #line 86 "lscp.y"
1382      { LSCPSERVER->AnswerClient("Err:0:Unknown command.\r\n"); RESTART; return LSCP_SYNTAX_ERROR; }      { LSCPSERVER->AnswerClient(yyvsp[0].String); return LSCP_DONE; }
1383      break;      break;
1384    
1385    case 14:    case 6:
1386  #line 96 "lscp.y"  #line 87 "lscp.y"
1387      { yyval.String = LSCPSERVER->AddChannel();                  }      { LSCPSERVER->AnswerClient("Err:0:Unknown command.\r\n"); RESTART; return LSCP_SYNTAX_ERROR; }
1388      break;      break;
1389    
1390    case 15:    case 12:
1391  #line 97 "lscp.y"  #line 97 "lscp.y"
1392      { yyval.String = yyvsp[0].String;                                        }      { yyval.String = LSCPSERVER->AddChannel();                  }
1393      break;      break;
1394    
1395    case 16:    case 13:
1396  #line 98 "lscp.y"  #line 98 "lscp.y"
1397      { yyval.String = yyvsp[0].String;                                        }      { yyval.String = yyvsp[0].String;                                        }
1398      break;      break;
1399    
1400    case 17:    case 14:
1401  #line 99 "lscp.y"  #line 99 "lscp.y"
1402      { yyval.String = yyvsp[0].String;                                        }      { yyval.String = yyvsp[0].String;                                        }
1403      break;      break;
1404    
1405    case 18:    case 15:
1406  #line 100 "lscp.y"  #line 100 "lscp.y"
1407      { yyval.String = yyvsp[0].String;                                        }      { yyval.String = yyvsp[0].String;                                        }
1408      break;      break;
1409    
1410    case 19:    case 16:
1411  #line 101 "lscp.y"  #line 101 "lscp.y"
1412      { yyval.String = yyvsp[0].String; background = false;                    }      { yyval.String = yyvsp[0].String;                                        }
1413      break;      break;
1414    
1415    case 20:    case 17:
1416  #line 102 "lscp.y"  #line 102 "lscp.y"
1417      { yyval.String = yyvsp[0].String; background = true;                     }      { yyval.String = yyvsp[0].String;                                        }
1418      break;      break;
1419    
1420    case 21:    case 18:
1421  #line 103 "lscp.y"  #line 103 "lscp.y"
1422      { yyval.String = LSCPSERVER->RemoveChannel(yyvsp[0].Number);             }      { yyval.String = LSCPSERVER->RemoveChannel(yyvsp[0].Number);             }
1423      break;      break;
1424    
1425    case 22:    case 19:
1426  #line 104 "lscp.y"  #line 104 "lscp.y"
1427      { yyval.String = yyvsp[0].String;                                        }      { yyval.String = yyvsp[0].String;                                        }
1428      break;      break;
1429    
1430    case 23:    case 20:
1431  #line 105 "lscp.y"  #line 105 "lscp.y"
1432      { yyval.String = yyvsp[0].String;                                        }      { yyval.String = yyvsp[0].String;                                        }
1433      break;      break;
1434    
1435    case 24:    case 21:
1436  #line 106 "lscp.y"  #line 106 "lscp.y"
1437      { yyval.String = yyvsp[0].String;                                        }      { yyval.String = yyvsp[0].String;                                        }
1438      break;      break;
1439    
1440    case 25:    case 22:
1441  #line 107 "lscp.y"  #line 107 "lscp.y"
1442      { yyval.String = LSCPSERVER->ResetChannel(yyvsp[0].Number);              }      { yyval.String = LSCPSERVER->ResetChannel(yyvsp[0].Number);              }
1443      break;      break;
1444    
1445    case 26:    case 23:
1446  #line 108 "lscp.y"  #line 108 "lscp.y"
1447      { LSCPSERVER->AnswerClient("Bye!\r\n"); return 0; }      { yyval.String = LSCPSERVER->ResetSampler();                }
1448        break;
1449    
1450      case 24:
1451    #line 109 "lscp.y"
1452        { LSCPSERVER->AnswerClient("Bye!\r\n"); return LSCP_QUIT; }
1453        break;
1454    
1455      case 25:
1456    #line 112 "lscp.y"
1457        { yyval.String = LSCPSERVER->SubscribeNotification(LSCPEvent::event_channels); }
1458        break;
1459    
1460      case 26:
1461    #line 113 "lscp.y"
1462        { yyval.String = LSCPSERVER->SubscribeNotification(LSCPEvent::event_voice_count); }
1463      break;      break;
1464    
1465    case 27:    case 27:
1466  #line 111 "lscp.y"  #line 114 "lscp.y"
1467      { yyval.String = LSCPSERVER->SubscribeNotification(event_channels); }      { yyval.String = LSCPSERVER->SubscribeNotification(LSCPEvent::event_stream_count); }
1468      break;      break;
1469    
1470    case 28:    case 28:
1471  #line 112 "lscp.y"  #line 115 "lscp.y"
1472      { yyval.String = LSCPSERVER->SubscribeNotification(event_voice_count); }      { yyval.String = LSCPSERVER->SubscribeNotification(LSCPEvent::event_buffer_fill); }
1473      break;      break;
1474    
1475    case 29:    case 29:
1476  #line 113 "lscp.y"  #line 116 "lscp.y"
1477      { yyval.String = LSCPSERVER->SubscribeNotification(event_stream_count); }      { yyval.String = LSCPSERVER->SubscribeNotification(LSCPEvent::event_info); }
1478      break;      break;
1479    
1480    case 30:    case 30:
1481  #line 114 "lscp.y"  #line 117 "lscp.y"
1482      { yyval.String = LSCPSERVER->SubscribeNotification(event_channel_buffer_fill); }      { yyval.String = LSCPSERVER->SubscribeNotification(LSCPEvent::event_misc); }
1483      break;      break;
1484    
1485    case 31:    case 31:
1486  #line 115 "lscp.y"  #line 120 "lscp.y"
1487      { yyval.String = LSCPSERVER->SubscribeNotification(event_channel_info); }      { yyval.String = LSCPSERVER->UnsubscribeNotification(LSCPEvent::event_channels); }
1488      break;      break;
1489    
1490    case 32:    case 32:
1491  #line 116 "lscp.y"  #line 121 "lscp.y"
1492      { yyval.String = LSCPSERVER->SubscribeNotification(event_misc); }      { yyval.String = LSCPSERVER->UnsubscribeNotification(LSCPEvent::event_voice_count); }
1493      break;      break;
1494    
1495    case 33:    case 33:
1496  #line 119 "lscp.y"  #line 122 "lscp.y"
1497      { yyval.String = LSCPSERVER->UnsubscribeNotification(event_channels); }      { yyval.String = LSCPSERVER->UnsubscribeNotification(LSCPEvent::event_stream_count); }
1498      break;      break;
1499    
1500    case 34:    case 34:
1501  #line 120 "lscp.y"  #line 123 "lscp.y"
1502      { yyval.String = LSCPSERVER->UnsubscribeNotification(event_voice_count); }      { yyval.String = LSCPSERVER->UnsubscribeNotification(LSCPEvent::event_buffer_fill); }
1503      break;      break;
1504    
1505    case 35:    case 35:
1506  #line 121 "lscp.y"  #line 124 "lscp.y"
1507      { yyval.String = LSCPSERVER->UnsubscribeNotification(event_stream_count); }      { yyval.String = LSCPSERVER->UnsubscribeNotification(LSCPEvent::event_info); }
1508      break;      break;
1509    
1510    case 36:    case 36:
1511  #line 122 "lscp.y"  #line 125 "lscp.y"
1512      { yyval.String = LSCPSERVER->UnsubscribeNotification(event_channel_buffer_fill); }      { yyval.String = LSCPSERVER->UnsubscribeNotification(LSCPEvent::event_misc); }
1513      break;      break;
1514    
1515    case 37:    case 37:
1516  #line 123 "lscp.y"  #line 128 "lscp.y"
1517      { yyval.String = LSCPSERVER->UnsubscribeNotification(event_channel_info); }      { yyval.String = LSCPSERVER->GetAvailableEngines();       }
1518      break;      break;
1519    
1520    case 38:    case 38:
1521  #line 124 "lscp.y"  #line 129 "lscp.y"
1522      { yyval.String = LSCPSERVER->UnsubscribeNotification(event_misc); }      { yyval.String = LSCPSERVER->GetAvailableMidiInputDrivers();       }
1523      break;      break;
1524    
1525    case 39:    case 39:
1526  #line 127 "lscp.y"  #line 130 "lscp.y"
1527      { yyval.String = LSCPSERVER->GetAvailableEngines();                          }      { yyval.String = LSCPSERVER->GetMidiInputDriverInfo(yyvsp[0].String);       }
1528      break;      break;
1529    
1530    case 40:    case 40:
1531  #line 128 "lscp.y"  #line 131 "lscp.y"
1532      { yyval.String = LSCPSERVER->GetAvailableAudioOutputDrivers();               }      { yyval.String = LSCPSERVER->GetMidiInputDriverParameterInfo(yyvsp[-2].String, yyvsp[0].String);       }
1533      break;      break;
1534    
1535    case 41:    case 41:
1536  #line 129 "lscp.y"  #line 132 "lscp.y"
1537      { yyval.String = LSCPSERVER->GetAudioOutputDriverInfo(yyvsp[0].String);                   }      { yyval.String = LSCPSERVER->GetMidiInputDriverParameterInfo(yyvsp[-4].String, yyvsp[-2].String, yyvsp[0].KeyValList);       }
1538      break;      break;
1539    
1540    case 42:    case 42:
1541  #line 130 "lscp.y"  #line 133 "lscp.y"
1542      { yyval.String = LSCPSERVER->GetAudioOutputDriverParameterInfo(yyvsp[-2].String, yyvsp[0].String);      }      { yyval.String = LSCPSERVER->GetAvailableAudioOutputDrivers();       }
1543      break;      break;
1544    
1545    case 43:    case 43:
1546  #line 131 "lscp.y"  #line 134 "lscp.y"
1547      { yyval.String = LSCPSERVER->GetAudioOutputDriverParameterInfo(yyvsp[-4].String, yyvsp[-2].String, yyvsp[0].KeyValList);  }      { yyval.String = LSCPSERVER->GetAudioOutputDriverInfo(yyvsp[0].String);       }
1548      break;      break;
1549    
1550    case 44:    case 44:
1551  #line 132 "lscp.y"  #line 135 "lscp.y"
1552      { yyval.String = LSCPSERVER->GetAudioOutputDeviceCount();                    }      { yyval.String = LSCPSERVER->GetAudioOutputDriverParameterInfo(yyvsp[-2].String, yyvsp[0].String);       }
1553      break;      break;
1554    
1555    case 45:    case 45:
1556  #line 133 "lscp.y"  #line 136 "lscp.y"
1557      { yyval.String = LSCPSERVER->GetAudioOutputDeviceInfo(yyvsp[0].Number);                   }      { yyval.String = LSCPSERVER->GetAudioOutputDriverParameterInfo(yyvsp[-4].String, yyvsp[-2].String, yyvsp[0].KeyValList);       }
1558      break;      break;
1559    
1560    case 46:    case 46:
1561  #line 134 "lscp.y"  #line 137 "lscp.y"
1562      { yyval.String = LSCPSERVER->GetAudioOutputChannelInfo(yyvsp[-2].Number, yyvsp[0].Number);              }      { yyval.String = LSCPSERVER->GetAudioOutputDeviceCount();       }
1563      break;      break;
1564    
1565    case 47:    case 47:
1566  #line 135 "lscp.y"  #line 138 "lscp.y"
1567      { yyval.String = LSCPSERVER->GetAudioOutputChannelParameterInfo(yyvsp[-4].Number, yyvsp[-2].Number, yyvsp[0].String); }      { yyval.String = LSCPSERVER->GetMidiInputDeviceCount();       }
1568      break;      break;
1569    
1570    case 48:    case 48:
1571  #line 136 "lscp.y"  #line 139 "lscp.y"
1572      { yyval.String = LSCPSERVER->GetChannels();                                  }      { yyval.String = LSCPSERVER->GetAudioOutputDeviceInfo(yyvsp[0].Number);       }
1573      break;      break;
1574    
1575    case 49:    case 49:
1576  #line 137 "lscp.y"  #line 140 "lscp.y"
1577      { yyval.String = LSCPSERVER->GetChannelInfo(yyvsp[0].Number);                             }      { yyval.String = LSCPSERVER->GetMidiInputDeviceInfo(yyvsp[0].Number);       }
1578      break;      break;
1579    
1580    case 50:    case 50:
1581  #line 138 "lscp.y"  #line 141 "lscp.y"
1582      { yyval.String = LSCPSERVER->GetBufferFill(yyvsp[-2].FillResponse, yyvsp[0].Number);                          }      { yyval.String = LSCPSERVER->GetMidiInputPortInfo(yyvsp[-2].Number, yyvsp[0].Number);       }
1583      break;      break;
1584    
1585    case 51:    case 51:
1586  #line 139 "lscp.y"  #line 142 "lscp.y"
1587      { yyval.String = LSCPSERVER->GetStreamCount(yyvsp[0].Number);                             }      { yyval.String = LSCPSERVER->GetMidiInputPortParameterInfo(yyvsp[-4].Number, yyvsp[-2].Number, yyvsp[0].String);       }
1588      break;      break;
1589    
1590    case 52:    case 52:
1591  #line 140 "lscp.y"  #line 143 "lscp.y"
1592      { yyval.String = LSCPSERVER->GetVoiceCount(yyvsp[0].Number);                              }      { yyval.String = LSCPSERVER->GetAudioOutputChannelInfo(yyvsp[-2].Number, yyvsp[0].Number);       }
1593      break;      break;
1594    
1595    case 53:    case 53:
1596  #line 141 "lscp.y"  #line 144 "lscp.y"
1597      { yyval.String = LSCPSERVER->GetEngineInfo(yyvsp[0].String);                              }      { yyval.String = LSCPSERVER->GetAudioOutputChannelParameterInfo(yyvsp[-4].Number, yyvsp[-2].Number, yyvsp[0].String);       }
1598      break;      break;
1599    
1600    case 54:    case 54:
1601  #line 144 "lscp.y"  #line 145 "lscp.y"
1602      { yyval.String = LSCPSERVER->SetAudioOutputDeviceParameter(yyvsp[-4].Number, yyvsp[-2].String, yyvsp[0].String);      }      { yyval.String = LSCPSERVER->GetChannels();       }
1603      break;      break;
1604    
1605    case 55:    case 55:
1606  #line 145 "lscp.y"  #line 146 "lscp.y"
1607      { yyval.String = LSCPSERVER->SetAudioOutputChannelParameter(yyvsp[-6].Number, yyvsp[-4].Number, yyvsp[-2].String, yyvsp[0].String); }      { yyval.String = LSCPSERVER->GetChannelInfo(yyvsp[0].Number);       }
1608      break;      break;
1609    
1610    case 56:    case 56:
1611  #line 146 "lscp.y"  #line 147 "lscp.y"
1612      { yyval.String = yyvsp[0].String;                                                         }      { yyval.String = LSCPSERVER->GetBufferFill(yyvsp[-2].FillResponse, yyvsp[0].Number);       }
1613      break;      break;
1614    
1615    case 57:    case 57:
1616  #line 149 "lscp.y"  #line 148 "lscp.y"
1617      { yyval.String = LSCPSERVER->CreateAudioOutputDevice(yyvsp[-2].String,yyvsp[0].KeyValList); }      { yyval.String = LSCPSERVER->GetStreamCount(yyvsp[0].Number);       }
1618      break;      break;
1619    
1620    case 58:    case 58:
1621  #line 150 "lscp.y"  #line 149 "lscp.y"
1622      { yyval.String = LSCPSERVER->CreateAudioOutputDevice(yyvsp[0].String); }      { yyval.String = LSCPSERVER->GetVoiceCount(yyvsp[0].Number);       }
1623      break;      break;
1624    
1625    case 59:    case 59:
1626  #line 153 "lscp.y"  #line 150 "lscp.y"
1627      { yyval.String = LSCPSERVER->DestroyAudioOutputDevice(yyvsp[0].Number); }      { yyval.String = LSCPSERVER->GetEngineInfo(yyvsp[0].String);       }
1628      break;      break;
1629    
1630    case 60:    case 60:
1631  #line 156 "lscp.y"  #line 153 "lscp.y"
1632      { yyval.String = yyvsp[0].String; }      { yyval.String = LSCPSERVER->SetAudioOutputDeviceParameter(yyvsp[-4].Number, yyvsp[-2].String, yyvsp[0].String);       }
1633      break;      break;
1634    
1635    case 61:    case 61:
1636  #line 157 "lscp.y"  #line 154 "lscp.y"
1637      { yyval.String = yyvsp[0].String; }      { yyval.String = LSCPSERVER->SetAudioOutputChannelParameter(yyvsp[-6].Number, yyvsp[-4].Number, yyvsp[-2].String, yyvsp[0].String);       }
1638      break;      break;
1639    
1640    case 62:    case 62:
1641  #line 160 "lscp.y"  #line 155 "lscp.y"
1642      { yyval.String = LSCPSERVER->SetAudioOutputDevice(yyvsp[0].Number, yyvsp[-2].Number);      }      { yyval.String = LSCPSERVER->SetMidiInputDeviceParameter(yyvsp[-4].Number, yyvsp[-2].String, yyvsp[0].String);       }
1643      break;      break;
1644    
1645    case 63:    case 63:
1646  #line 161 "lscp.y"  #line 156 "lscp.y"
1647      { yyval.String = LSCPSERVER->SetAudioOutputChannel(yyvsp[-2].Number, yyvsp[0].Number, yyvsp[-4].Number); }      { yyval.String = LSCPSERVER->SetMidiInputPortParameter(yyvsp[-6].Number, yyvsp[-4].Number, yyvsp[-2].String, yyvsp[0].String);       }
1648      break;      break;
1649    
1650    case 64:    case 64:
1651  #line 162 "lscp.y"  #line 157 "lscp.y"
1652      { yyval.String = LSCPSERVER->SetMIDIInputPort(yyvsp[0].String, yyvsp[-2].Number);          }      { yyval.String = yyvsp[0].String;                                                         }
1653      break;      break;
1654    
1655    case 65:    case 65:
1656  #line 163 "lscp.y"  #line 158 "lscp.y"
1657      { yyval.String = LSCPSERVER->SetMIDIInputChannel(yyvsp[0].Number, yyvsp[-2].Number);       }      { yyval.String = LSCPSERVER->SetEcho((yyparse_param_t*) yyparse_param, yyvsp[0].Dotnum);  }
1658      break;      break;
1659    
1660    case 66:    case 66:
1661  #line 164 "lscp.y"  #line 161 "lscp.y"
1662      { yyval.String = LSCPSERVER->SetMIDIInputType(yyvsp[0].String, yyvsp[-2].Number);          }      { yyval.String = LSCPSERVER->CreateAudioOutputDevice(yyvsp[-2].String,yyvsp[0].KeyValList); }
1663      break;      break;
1664    
1665    case 67:    case 67:
1666  #line 165 "lscp.y"  #line 162 "lscp.y"
1667      { yyval.String = LSCPSERVER->SetVolume(yyvsp[0].Dotnum, yyvsp[-2].Number);                 }      { yyval.String = LSCPSERVER->CreateAudioOutputDevice(yyvsp[0].String);    }
1668      break;      break;
1669    
1670    case 68:    case 68:
1671  #line 168 "lscp.y"  #line 163 "lscp.y"
1672      { yyval.KeyValList[yyvsp[-2].String] = yyvsp[0].String;          }      { yyval.String = LSCPSERVER->CreateMidiInputDevice(yyvsp[-2].String,yyvsp[0].KeyValList);   }
1673      break;      break;
1674    
1675    case 69:    case 69:
1676  #line 169 "lscp.y"  #line 164 "lscp.y"
1677      { yyval.KeyValList = yyvsp[-4].KeyValList; yyval.KeyValList[yyvsp[-2].String] = yyvsp[0].String; }      { yyval.String = LSCPSERVER->CreateMidiInputDevice(yyvsp[0].String);      }
1678      break;      break;
1679    
1680    case 70:    case 70:
1681  #line 172 "lscp.y"  #line 167 "lscp.y"
1682      { yyval.FillResponse = fill_response_bytes;      }      { yyval.String = LSCPSERVER->DestroyAudioOutputDevice(yyvsp[0].Number);       }
1683      break;      break;
1684    
1685    case 71:    case 71:
1686  #line 173 "lscp.y"  #line 168 "lscp.y"
1687      { yyval.FillResponse = fill_response_percentage; }      { yyval.String = LSCPSERVER->DestroyMidiInputDevice(yyvsp[0].Number);         }
1688      break;      break;
1689    
1690    case 72:    case 72:
1691  #line 176 "lscp.y"  #line 171 "lscp.y"
1692      { yyval.String = LSCPSERVER->GetAudioOutputDevices(); }      { yyval.String = yyvsp[0].String; }
1693      break;      break;
1694    
1695    case 73:    case 73:
1696  #line 179 "lscp.y"  #line 172 "lscp.y"
1697      { yyval.String = LSCPSERVER->LoadInstrument(yyvsp[-4].String, yyvsp[-2].Number, yyvsp[0].Number, background); }      { yyval.String = yyvsp[0].String; }
1698      break;      break;
1699    
1700    case 74:    case 74:
1701  #line 182 "lscp.y"  #line 175 "lscp.y"
1702      { yyval.String = LSCPSERVER->LoadEngine(yyvsp[-2].String, yyvsp[0].Number); }      { yyval.String = LSCPSERVER->SetAudioOutputDevice(yyvsp[0].Number, yyvsp[-2].Number);      }
1703        break;
1704    
1705      case 75:
1706    #line 176 "lscp.y"
1707        { yyval.String = LSCPSERVER->SetAudioOutputChannel(yyvsp[-2].Number, yyvsp[0].Number, yyvsp[-4].Number); }
1708        break;
1709    
1710      case 76:
1711    #line 177 "lscp.y"
1712        { yyval.String = LSCPSERVER->SetAudioOutputType(yyvsp[0].String, yyvsp[-2].Number);        }
1713      break;      break;
1714    
1715    case 77:    case 77:
1716  #line 189 "lscp.y"  #line 178 "lscp.y"
1717      { yyval.Dotnum = yyvsp[0].Number; }      { yyval.String = LSCPSERVER->SetMIDIInput(yyvsp[-4].Number, yyvsp[-2].Number, yyvsp[0].Number, yyvsp[-6].Number);  }
1718        break;
1719    
1720      case 78:
1721    #line 179 "lscp.y"
1722        { yyval.String = LSCPSERVER->SetMIDIInputDevice(yyvsp[0].Number, yyvsp[-2].Number);        }
1723        break;
1724    
1725      case 79:
1726    #line 180 "lscp.y"
1727        { yyval.String = LSCPSERVER->SetMIDIInputPort(yyvsp[0].Number, yyvsp[-2].Number);          }
1728        break;
1729    
1730      case 80:
1731    #line 181 "lscp.y"
1732        { yyval.String = LSCPSERVER->SetMIDIInputChannel(yyvsp[0].Number, yyvsp[-2].Number);       }
1733        break;
1734    
1735      case 81:
1736    #line 182 "lscp.y"
1737        { yyval.String = LSCPSERVER->SetMIDIInputType(yyvsp[0].String, yyvsp[-2].Number);          }
1738        break;
1739    
1740      case 82:
1741    #line 183 "lscp.y"
1742        { yyval.String = LSCPSERVER->SetVolume(yyvsp[0].Dotnum, yyvsp[-2].Number);                 }
1743        break;
1744    
1745      case 83:
1746    #line 186 "lscp.y"
1747        { yyval.KeyValList[yyvsp[-2].String] = yyvsp[0].String;          }
1748        break;
1749    
1750      case 84:
1751    #line 187 "lscp.y"
1752        { yyval.KeyValList = yyvsp[-4].KeyValList; yyval.KeyValList[yyvsp[-2].String] = yyvsp[0].String; }
1753      break;      break;
1754    
1755    case 85:    case 85:
1756  #line 213 "lscp.y"  #line 190 "lscp.y"
1757      { yyval.String = yyvsp[0].String;                                             }      { yyval.FillResponse = fill_response_bytes;      }
1758      break;      break;
1759    
1760    case 86:    case 86:
1761  #line 214 "lscp.y"  #line 191 "lscp.y"
1762      { std::stringstream ss; ss << yyvsp[0].Number; yyval.String = ss.str();       }      { yyval.FillResponse = fill_response_percentage; }
1763      break;      break;
1764    
1765    case 87:    case 87:
1766  #line 215 "lscp.y"  #line 194 "lscp.y"
1767      { std::stringstream ss; ss << yyvsp[0].Dotnum; yyval.String = ss.str();       }      { yyval.String = LSCPSERVER->GetAudioOutputDevices(); }
1768      break;      break;
1769    
1770    case 88:    case 88:
1771  #line 218 "lscp.y"  #line 195 "lscp.y"
1772      { std::string s; s = yyvsp[0].Char; yyval.String = s; }      { yyval.String = LSCPSERVER->GetMidiInputDevices();   }
1773      break;      break;
1774    
1775    case 89:    case 89:
1776  #line 219 "lscp.y"  #line 196 "lscp.y"
1777        { yyval.String = LSCPSERVER->ListChannels();          }
1778        break;
1779    
1780      case 90:
1781    #line 199 "lscp.y"
1782        { yyval.String = LSCPSERVER->LoadInstrument(yyvsp[-4].String, yyvsp[-2].Number, yyvsp[0].Number);       }
1783        break;
1784    
1785      case 91:
1786    #line 200 "lscp.y"
1787        { yyval.String = LSCPSERVER->LoadInstrument(yyvsp[-4].String, yyvsp[-2].Number, yyvsp[0].Number, true);       }
1788        break;
1789    
1790      case 92:
1791    #line 203 "lscp.y"
1792        { yyval.String = LSCPSERVER->LoadEngine(yyvsp[-2].String, yyvsp[0].Number);       }
1793        break;
1794    
1795      case 101:
1796    #line 228 "lscp.y"
1797        { yyval.Dotnum = yyvsp[0].Number; }
1798        break;
1799    
1800      case 106:
1801    #line 243 "lscp.y"
1802        { yyval.String = yyvsp[0].String;                                             }
1803        break;
1804    
1805      case 107:
1806    #line 244 "lscp.y"
1807        { std::stringstream ss; ss << yyvsp[0].Number; yyval.String = ss.str();       }
1808        break;
1809    
1810      case 108:
1811    #line 245 "lscp.y"
1812        { std::stringstream ss; ss << yyvsp[0].Dotnum; yyval.String = ss.str();       }
1813        break;
1814    
1815      case 109:
1816    #line 248 "lscp.y"
1817        { yyval.Dotnum = yyvsp[0].Number; }
1818        break;
1819    
1820      case 110:
1821    #line 249 "lscp.y"
1822        { yyval.Dotnum = -1; }
1823        break;
1824    
1825      case 111:
1826    #line 252 "lscp.y"
1827        { std::string s; s = yyvsp[0].Char; yyval.String = s; }
1828        break;
1829    
1830      case 112:
1831    #line 253 "lscp.y"
1832      { yyval.String = yyvsp[-1].String + yyvsp[0].Char;                  }      { yyval.String = yyvsp[-1].String + yyvsp[0].Char;                  }
1833      break;      break;
1834    
# Line 1617  yyreduce: Line 1836  yyreduce:
1836      }      }
1837    
1838  /* Line 999 of yacc.c.  */  /* Line 999 of yacc.c.  */
1839  #line 1620 "y.tab.c"  #line 1840 "y.tab.c"
1840    
1841    yyvsp -= yylen;    yyvsp -= yylen;
1842    yyssp -= yylen;    yyssp -= yylen;
# Line 1811  yyreturn: Line 2030  yyreturn:
2030  }  }
2031    
2032    
2033  #line 78 "lscp.y"  #line 256 "lscp.y"
2034    
2035    
2036  /**  /**
# Line 1827  void yyerror(const char* s) { Line 2046  void yyerror(const char* s) {
2046  void restart(yyparse_param_t* pparam, int& yychar) {  void restart(yyparse_param_t* pparam, int& yychar) {
2047      // restart scanner      // restart scanner
2048      yyrestart(stdin, pparam->pScanner);      yyrestart(stdin, pparam->pScanner);
     // flush input buffer  
     static char buf[1024];  
     while(recv(hSession, buf, 1024, MSG_DONTWAIT) > 0);  
2049      // reset lookahead symbol      // reset lookahead symbol
2050      yyclearin;      yyclearin;
2051  }  }

Legend:
Removed from v.138  
changed lines
  Added in v.212

  ViewVC Help
Powered by ViewVC