/[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 111 by schoenebeck, Sat Jun 5 20:55:50 2004 UTC revision 143 by capela, Wed Jun 23 18:54:08 2004 UTC
# Line 1  Line 1 
1  /* A Bison parser, made by GNU Bison 1.875a.  */  /* A Bison parser, made by GNU Bison 1.875.  */
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, 2003 Free Software Foundation, Inc.     Copyright (C) 1984, 1989, 1990, 2000, 2001, 2002 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 56  Line 56 
56       CHAR = 258,       CHAR = 258,
57       DOTNUM = 259,       DOTNUM = 259,
58       NUMBER = 260,       NUMBER = 260,
59       SP = 261,       STRINGVAL = 261,
60       LF = 262,       SP = 262,
61       CR = 263,       LF = 263,
62       HASH = 264,       CR = 264,
63       ADD = 265,       HASH = 265,
64       GET = 266,       EQ = 266,
65       LOAD = 267,       ADD = 267,
66       REMOVE = 268,       GET = 268,
67       SET = 269,       CREATE = 269,
68       SUBSCRIBE = 270,       DESTROY = 270,
69       UNSUBSCRIBE = 271,       LIST = 271,
70       RESET = 272,       LOAD = 272,
71       QUIT = 273,       NON_MODAL = 273,
72       CHANNEL = 274,       REMOVE = 274,
73       NOTIFICATION = 275,       SET = 275,
74       AVAILABLE_ENGINES = 276,       SUBSCRIBE = 276,
75       CHANNELS = 277,       UNSUBSCRIBE = 277,
76       INFO = 278,       RESET = 278,
77       BUFFER_FILL = 279,       QUIT = 279,
78       STREAM_COUNT = 280,       CHANNEL = 280,
79       VOICE_COUNT = 281,       NOTIFICATION = 281,
80       INSTRUMENT = 282,       AVAILABLE_ENGINES = 282,
81       ENGINE = 283,       AVAILABLE_AUDIO_OUTPUT_DRIVERS = 283,
82       AUDIO_OUTPUT_CHANNEL = 284,       CHANNELS = 284,
83       AUDIO_OUTPUT_TYPE = 285,       INFO = 285,
84       MIDI_INPUT_PORT = 286,       BUFFER_FILL = 286,
85       MIDI_INPUT_CHANNEL = 287,       STREAM_COUNT = 287,
86       MIDI_INPUT_TYPE = 288,       VOICE_COUNT = 288,
87       VOLUME = 289,       INSTRUMENT = 289,
88       BYTES = 290,       ENGINE = 290,
89       PERCENTAGE = 291,       AUDIO_OUTPUT_CHANNEL = 291,
90       ALSA = 292,       AUDIO_OUTPUT_CHANNEL_PARAMETER = 292,
91       JACK = 293       AUDIO_OUTPUT_DEVICE = 293,
92         AUDIO_OUTPUT_DEVICES = 294,
93         AUDIO_OUTPUT_DEVICE_PARAMETER = 295,
94         AUDIO_OUTPUT_DRIVER = 296,
95         AUDIO_OUTPUT_DRIVER_PARAMETER = 297,
96         AUDIO_OUTPUT_TYPE = 298,
97         MIDI_INPUT_PORT = 299,
98         MIDI_INPUT_CHANNEL = 300,
99         MIDI_INPUT_TYPE = 301,
100         VOLUME = 302,
101         BYTES = 303,
102         PERCENTAGE = 304,
103         MISCELLANEOUS = 305
104     };     };
105  #endif  #endif
106  #define CHAR 258  #define CHAR 258
107  #define DOTNUM 259  #define DOTNUM 259
108  #define NUMBER 260  #define NUMBER 260
109  #define SP 261  #define STRINGVAL 261
110  #define LF 262  #define SP 262
111  #define CR 263  #define LF 263
112  #define HASH 264  #define CR 264
113  #define ADD 265  #define HASH 265
114  #define GET 266  #define EQ 266
115  #define LOAD 267  #define ADD 267
116  #define REMOVE 268  #define GET 268
117  #define SET 269  #define CREATE 269
118  #define SUBSCRIBE 270  #define DESTROY 270
119  #define UNSUBSCRIBE 271  #define LIST 271
120  #define RESET 272  #define LOAD 272
121  #define QUIT 273  #define NON_MODAL 273
122  #define CHANNEL 274  #define REMOVE 274
123  #define NOTIFICATION 275  #define SET 275
124  #define AVAILABLE_ENGINES 276  #define SUBSCRIBE 276
125  #define CHANNELS 277  #define UNSUBSCRIBE 277
126  #define INFO 278  #define RESET 278
127  #define BUFFER_FILL 279  #define QUIT 279
128  #define STREAM_COUNT 280  #define CHANNEL 280
129  #define VOICE_COUNT 281  #define NOTIFICATION 281
130  #define INSTRUMENT 282  #define AVAILABLE_ENGINES 282
131  #define ENGINE 283  #define AVAILABLE_AUDIO_OUTPUT_DRIVERS 283
132  #define AUDIO_OUTPUT_CHANNEL 284  #define CHANNELS 284
133  #define AUDIO_OUTPUT_TYPE 285  #define INFO 285
134  #define MIDI_INPUT_PORT 286  #define BUFFER_FILL 286
135  #define MIDI_INPUT_CHANNEL 287  #define STREAM_COUNT 287
136  #define MIDI_INPUT_TYPE 288  #define VOICE_COUNT 288
137  #define VOLUME 289  #define INSTRUMENT 289
138  #define BYTES 290  #define ENGINE 290
139  #define PERCENTAGE 291  #define AUDIO_OUTPUT_CHANNEL 291
140  #define ALSA 292  #define AUDIO_OUTPUT_CHANNEL_PARAMETER 292
141  #define JACK 293  #define AUDIO_OUTPUT_DEVICE 293
142    #define AUDIO_OUTPUT_DEVICES 294
143    #define AUDIO_OUTPUT_DEVICE_PARAMETER 295
144    #define AUDIO_OUTPUT_DRIVER 296
145    #define AUDIO_OUTPUT_DRIVER_PARAMETER 297
146    #define AUDIO_OUTPUT_TYPE 298
147    #define MIDI_INPUT_PORT 299
148    #define MIDI_INPUT_CHANNEL 300
149    #define MIDI_INPUT_TYPE 301
150    #define VOLUME 302
151    #define BYTES 303
152    #define PERCENTAGE 304
153    #define MISCELLANEOUS 305
154    
155    
156    
# Line 185  typedef int YYSTYPE; Line 209  typedef int YYSTYPE;
209    
210    
211  /* Line 214 of yacc.c.  */  /* Line 214 of yacc.c.  */
212  #line 189 "y.tab.c"  #line 212 "y.tab.c"
213    
214  #if ! defined (yyoverflow) || YYERROR_VERBOSE  #if ! defined (yyoverflow) || YYERROR_VERBOSE
215    
# Line 282  union yyalloc Line 306  union yyalloc
306  #endif  #endif
307    
308  /* YYFINAL -- State number of the termination state. */  /* YYFINAL -- State number of the termination state. */
309  #define YYFINAL  24  #define YYFINAL  30
310  /* YYLAST -- Last index in YYTABLE.  */  /* YYLAST -- Last index in YYTABLE.  */
311  #define YYLAST   128  #define YYLAST   225
312    
313  /* YYNTOKENS -- Number of terminals. */  /* YYNTOKENS -- Number of terminals. */
314  #define YYNTOKENS  39  #define YYNTOKENS  51
315  /* YYNNTS -- Number of nonterminals. */  /* YYNNTS -- Number of nonterminals. */
316  #define YYNNTS  25  #define YYNNTS  30
317  /* YYNRULES -- Number of rules. */  /* YYNRULES -- Number of rules. */
318  #define YYNRULES  62  #define YYNRULES  92
319  /* YYNRULES -- Number of states. */  /* YYNRULES -- Number of states. */
320  #define YYNSTATES  142  #define YYNSTATES  239
321    
322  /* YYTRANSLATE(YYLEX) -- Bison symbol number corresponding to YYLEX.  */  /* YYTRANSLATE(YYLEX) -- Bison symbol number corresponding to YYLEX.  */
323  #define YYUNDEFTOK  2  #define YYUNDEFTOK  2
324  #define YYMAXUTOK   293  #define YYMAXUTOK   305
325    
326  #define YYTRANSLATE(YYX)                                                \  #define YYTRANSLATE(YYX)                                                \
327    ((unsigned int) (YYX) <= YYMAXUTOK ? yytranslate[YYX] : YYUNDEFTOK)    ((unsigned int) (YYX) <= YYMAXUTOK ? yytranslate[YYX] : YYUNDEFTOK)
# Line 334  static const unsigned char yytranslate[] Line 358  static const unsigned char yytranslate[]
358         5,     6,     7,     8,     9,    10,    11,    12,    13,    14,         5,     6,     7,     8,     9,    10,    11,    12,    13,    14,
359        15,    16,    17,    18,    19,    20,    21,    22,    23,    24,        15,    16,    17,    18,    19,    20,    21,    22,    23,    24,
360        25,    26,    27,    28,    29,    30,    31,    32,    33,    34,        25,    26,    27,    28,    29,    30,    31,    32,    33,    34,
361        35,    36,    37,    38        35,    36,    37,    38,    39,    40,    41,    42,    43,    44,
362          45,    46,    47,    48,    49,    50
363  };  };
364    
365  #if YYDEBUG  #if YYDEBUG
366  /* 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
367     YYRHS.  */     YYRHS.  */
368  static const unsigned char yyprhs[] =  static const unsigned short yyprhs[] =
369  {  {
370         0,     0,     3,     5,     9,    14,    15,    17,    19,    21,         0,     0,     3,     5,     9,    14,    15,    17,    19,    21,
371        23,    26,    29,    32,    35,    39,    43,    47,    53,    59,        23,    26,    29,    32,    35,    39,    43,    47,    51,    55,
372        65,    71,    77,    79,    81,    83,    89,    97,   103,   109,        59,    65,    69,    73,    77,    83,    85,    87,    89,    91,
373       115,   119,   123,   129,   135,   141,   147,   153,   159,   161,        93,    95,    97,    99,   101,   103,   105,   107,   109,   111,
374       163,   169,   173,   175,   177,   179,   181,   183,   185,   187,       113,   119,   127,   137,   139,   145,   153,   163,   165,   171,
375       189,   191,   193,   195,   197,   199,   201,   205,   207,   209,       179,   185,   191,   197,   205,   215,   219,   225,   229,   233,
376       212,   215,   217       237,   241,   247,   255,   261,   267,   273,   279,   285,   289,
377         295,   297,   299,   301,   307,   315,   319,   321,   323,   325,
378         327,   329,   331,   333,   335,   337,   339,   341,   343,   345,
379         347,   349,   351
380  };  };
381    
382  /* YYRHS -- A `-1'-separated list of the rules' RHS. */  /* YYRHS -- A `-1'-separated list of the rules' RHS. */
383  static const yysigned_char yyrhs[] =  static const yysigned_char yyrhs[] =
384  {  {
385        40,     0,    -1,    41,    -1,    40,     7,    41,    -1,    40,        52,     0,    -1,    53,    -1,    52,     8,    53,    -1,    52,
386         8,     7,    41,    -1,    -1,    42,    -1,    43,    -1,     1,         9,     8,    53,    -1,    -1,    54,    -1,    55,    -1,     1,
387        -1,     9,    -1,    42,     9,    -1,    42,     6,    -1,    42,        -1,    10,    -1,    54,    10,    -1,    54,     7,    -1,    54,
388         5,    -1,    42,    63,    -1,    10,     6,    19,    -1,    11,         5,    -1,    54,    80,    -1,    12,     7,    25,    -1,    13,
389         6,    44,    -1,    12,     6,    45,    -1,    13,     6,    19,         7,    58,    -1,    14,     7,    60,    -1,    15,     7,    61,
390         6,    53,    -1,    14,     6,    19,     6,    46,    -1,    15,        -1,    16,     7,    66,    -1,    17,     7,    62,    -1,    19,
391         6,    20,     6,    55,    -1,    16,     6,    20,     6,    58,         7,    25,     7,    72,    -1,    20,     7,    59,    -1,    21,
392        -1,    17,     6,    19,     6,    53,    -1,    18,    -1,    21,         7,    56,    -1,    22,     7,    57,    -1,    23,     7,    25,
393        -1,    22,    -1,    19,     6,    23,     6,    53,    -1,    19,         7,    72,    -1,    24,    -1,    29,    -1,    33,    -1,    32,
394         6,    24,     6,    47,     6,    53,    -1,    19,     6,    25,        -1,    31,    -1,    30,    -1,    50,    -1,    29,    -1,    33,
395         6,    53,    -1,    19,     6,    26,     6,    53,    -1,    28,        -1,    32,    -1,    31,    -1,    30,    -1,    50,    -1,    27,
396         6,    23,     6,    59,    -1,    27,     6,    48,    -1,    28,        -1,    28,    -1,    41,     7,    30,     7,    80,    -1,    42,
397         6,    49,    -1,    29,     6,    53,     6,    56,    -1,    30,         7,    30,     7,    80,     7,    80,    -1,    42,     7,    30,
398         6,    53,     6,    50,    -1,    31,     6,    53,     6,    60,         7,    80,     7,    80,     7,    64,    -1,    39,    -1,    38,
399        -1,    32,     6,    53,     6,    57,    -1,    33,     6,    53,         7,    30,     7,     5,    -1,    36,     7,    30,     7,     5,
400         6,    51,    -1,    34,     6,    53,     6,    52,    -1,    35,         7,     5,    -1,    37,     7,    30,     7,     5,     7,     5,
401        -1,    36,    -1,    61,     6,    54,     6,    53,    -1,    59,         7,    80,    -1,    29,    -1,    25,     7,    30,     7,    72,
402         6,    53,    -1,    37,    -1,    38,    -1,    37,    -1,     4,        -1,    25,     7,    31,     7,    65,     7,    72,    -1,    25,
403        -1,     5,    -1,     5,    -1,     5,    -1,     5,    -1,     5,         7,    32,     7,    72,    -1,    25,     7,    33,     7,    72,
404        -1,     5,    -1,    62,    -1,    63,    -1,    62,    -1,    62,        -1,    35,     7,    30,     7,    76,    -1,    40,     7,     5,
405        -1,    61,     6,    62,    -1,    63,    -1,     5,    -1,    62,         7,    80,    11,    79,    -1,    37,     7,     5,     7,     5,
406        63,    -1,    62,     5,    -1,     3,    -1,    63,     3,    -1         7,    80,    11,    79,    -1,    25,     7,    63,    -1,    38,
407           7,    80,     7,    64,    -1,    38,     7,    80,    -1,    38,
408           7,     5,    -1,    34,     7,    67,    -1,    35,     7,    68,
409          -1,    38,     7,    72,     7,     5,    -1,    36,     7,    72,
410           7,    74,     7,    74,    -1,    43,     7,    72,     7,    69,
411          -1,    44,     7,    72,     7,    77,    -1,    45,     7,    72,
412           7,    75,    -1,    46,     7,    72,     7,    70,    -1,    47,
413           7,    72,     7,    71,    -1,    80,    11,    79,    -1,    64,
414           7,    80,    11,    79,    -1,    48,    -1,    49,    -1,    39,
415          -1,    78,     7,    73,     7,    72,    -1,    18,     7,    78,
416           7,    73,     7,    72,    -1,    76,     7,    72,    -1,    80,
417          -1,    80,    -1,     4,    -1,     5,    -1,     5,    -1,     5,
418          -1,     5,    -1,     5,    -1,    80,    -1,     6,    -1,     6,
419          -1,    80,    -1,     6,    -1,     5,    -1,     4,    -1,     3,
420          -1,    80,     3,    -1
421  };  };
422    
423  /* YYRLINE[YYN] -- source line where rule number YYN was defined.  */  /* YYRLINE[YYN] -- source line where rule number YYN was defined.  */
# Line 383  static const unsigned char yyrline[] = Line 425  static const unsigned char yyrline[] =
425  {  {
426         0,    77,    77,    78,    79,    82,    83,    84,    85,    88,         0,    77,    77,    78,    79,    82,    83,    84,    85,    88,
427        89,    90,    91,    92,    95,    96,    97,    98,    99,   100,        89,    90,    91,    92,    95,    96,    97,    98,    99,   100,
428       101,   102,   103,   106,   107,   108,   109,   110,   111,   112,       101,   102,   103,   104,   105,   106,   109,   110,   111,   112,
429       115,   116,   119,   120,   121,   122,   123,   124,   127,   128,       113,   114,   117,   118,   119,   120,   121,   122,   125,   126,
430       131,   134,   137,   138,   141,   144,   145,   148,   151,   154,       127,   128,   129,   130,   131,   132,   133,   134,   135,   136,
431       157,   160,   163,   166,   169,   172,   173,   176,   177,   178,       137,   138,   139,   142,   143,   144,   147,   148,   151,   154,
432       179,   182,   183       155,   158,   159,   160,   161,   162,   163,   164,   167,   168,
433         171,   172,   175,   178,   179,   182,   185,   188,   191,   192,
434         195,   198,   201,   204,   207,   210,   213,   214,   217,   218,
435         219,   222,   223
436  };  };
437  #endif  #endif
438    
# Line 396  static const unsigned char yyrline[] = Line 441  static const unsigned char yyrline[] =
441     First, the terminals, then, starting at YYNTOKENS, nonterminals. */     First, the terminals, then, starting at YYNTOKENS, nonterminals. */
442  static const char *const yytname[] =  static const char *const yytname[] =
443  {  {
444    "$end", "error", "$undefined", "CHAR", "DOTNUM", "NUMBER", "SP", "LF",    "$end", "error", "$undefined", "CHAR", "DOTNUM", "NUMBER", "STRINGVAL",
445    "CR", "HASH", "ADD", "GET", "LOAD", "REMOVE", "SET", "SUBSCRIBE",    "SP", "LF", "CR", "HASH", "EQ", "ADD", "GET", "CREATE", "DESTROY",
446      "LIST", "LOAD", "NON_MODAL", "REMOVE", "SET", "SUBSCRIBE",
447    "UNSUBSCRIBE", "RESET", "QUIT", "CHANNEL", "NOTIFICATION",    "UNSUBSCRIBE", "RESET", "QUIT", "CHANNEL", "NOTIFICATION",
448    "AVAILABLE_ENGINES", "CHANNELS", "INFO", "BUFFER_FILL", "STREAM_COUNT",    "AVAILABLE_ENGINES", "AVAILABLE_AUDIO_OUTPUT_DRIVERS", "CHANNELS",
449    "VOICE_COUNT", "INSTRUMENT", "ENGINE", "AUDIO_OUTPUT_CHANNEL",    "INFO", "BUFFER_FILL", "STREAM_COUNT", "VOICE_COUNT", "INSTRUMENT",
450    "AUDIO_OUTPUT_TYPE", "MIDI_INPUT_PORT", "MIDI_INPUT_CHANNEL",    "ENGINE", "AUDIO_OUTPUT_CHANNEL", "AUDIO_OUTPUT_CHANNEL_PARAMETER",
451    "MIDI_INPUT_TYPE", "VOLUME", "BYTES", "PERCENTAGE", "ALSA", "JACK",    "AUDIO_OUTPUT_DEVICE", "AUDIO_OUTPUT_DEVICES",
452    "$accept", "input", "line", "comment", "command", "get_instruction",    "AUDIO_OUTPUT_DEVICE_PARAMETER", "AUDIO_OUTPUT_DRIVER",
453    "load_instruction", "set_chan_instruction", "buffer_size_type",    "AUDIO_OUTPUT_DRIVER_PARAMETER", "AUDIO_OUTPUT_TYPE", "MIDI_INPUT_PORT",
454    "load_instr_args", "load_engine_args", "audio_output_type",    "MIDI_INPUT_CHANNEL", "MIDI_INPUT_TYPE", "VOLUME", "BYTES",
455    "midi_input_type", "volume", "sampler_channel", "instrument_index",    "PERCENTAGE", "MISCELLANEOUS", "$accept", "input", "line", "comment",
456    "udp_port", "audio_output_channel", "midi_input_channel", "session_id",    "command", "subscribe_event", "unsubscribe_event", "get_instruction",
457    "engine_name", "midi_input_port", "filename", "alpha_num_string",    "set_instruction", "create_instruction", "destroy_instruction",
458    "string", 0    "load_instruction", "set_chan_instruction", "key_val_list",
459      "buffer_size_type", "list_instruction", "load_instr_args",
460      "load_engine_args", "audio_output_type", "midi_input_type", "volume",
461      "sampler_channel", "instrument_index", "audio_output_channel",
462      "midi_input_channel", "engine_name", "midi_input_port", "filename",
463      "param_val", "string", 0
464  };  };
465  #endif  #endif
466    
# Line 421  static const unsigned short yytoknum[] = Line 472  static const unsigned short yytoknum[] =
472         0,   256,   257,   258,   259,   260,   261,   262,   263,   264,         0,   256,   257,   258,   259,   260,   261,   262,   263,   264,
473       265,   266,   267,   268,   269,   270,   271,   272,   273,   274,       265,   266,   267,   268,   269,   270,   271,   272,   273,   274,
474       275,   276,   277,   278,   279,   280,   281,   282,   283,   284,       275,   276,   277,   278,   279,   280,   281,   282,   283,   284,
475       285,   286,   287,   288,   289,   290,   291,   292,   293       285,   286,   287,   288,   289,   290,   291,   292,   293,   294,
476         295,   296,   297,   298,   299,   300,   301,   302,   303,   304,
477         305
478  };  };
479  # endif  # endif
480    
481  /* YYR1[YYN] -- Symbol number of symbol that rule YYN derives.  */  /* YYR1[YYN] -- Symbol number of symbol that rule YYN derives.  */
482  static const unsigned char yyr1[] =  static const unsigned char yyr1[] =
483  {  {
484         0,    39,    40,    40,    40,    41,    41,    41,    41,    42,         0,    51,    52,    52,    52,    53,    53,    53,    53,    54,
485        42,    42,    42,    42,    43,    43,    43,    43,    43,    43,        54,    54,    54,    54,    55,    55,    55,    55,    55,    55,
486        43,    43,    43,    44,    44,    44,    44,    44,    44,    44,        55,    55,    55,    55,    55,    55,    56,    56,    56,    56,
487        45,    45,    46,    46,    46,    46,    46,    46,    47,    47,        56,    56,    57,    57,    57,    57,    57,    57,    58,    58,
488        48,    49,    50,    50,    51,    52,    52,    53,    54,    55,        58,    58,    58,    58,    58,    58,    58,    58,    58,    58,
489        56,    57,    58,    59,    60,    61,    61,    62,    62,    62,        58,    58,    58,    59,    59,    59,    60,    60,    61,    62,
490        62,    63,    63        62,    63,    63,    63,    63,    63,    63,    63,    64,    64,
491          65,    65,    66,    67,    67,    68,    69,    70,    71,    71,
492          72,    73,    74,    75,    76,    77,    78,    78,    79,    79,
493          79,    80,    80
494  };  };
495    
496  /* YYR2[YYN] -- Number of symbols composing right hand side of rule YYN.  */  /* YYR2[YYN] -- Number of symbols composing right hand side of rule YYN.  */
497  static const unsigned char yyr2[] =  static const unsigned char yyr2[] =
498  {  {
499         0,     2,     1,     3,     4,     0,     1,     1,     1,     1,         0,     2,     1,     3,     4,     0,     1,     1,     1,     1,
500         2,     2,     2,     2,     3,     3,     3,     5,     5,     5,         2,     2,     2,     2,     3,     3,     3,     3,     3,     3,
501         5,     5,     1,     1,     1,     5,     7,     5,     5,     5,         5,     3,     3,     3,     5,     1,     1,     1,     1,     1,
502         3,     3,     5,     5,     5,     5,     5,     5,     1,     1,         1,     1,     1,     1,     1,     1,     1,     1,     1,     1,
503         5,     3,     1,     1,     1,     1,     1,     1,     1,     1,         5,     7,     9,     1,     5,     7,     9,     1,     5,     7,
504         1,     1,     1,     1,     1,     1,     3,     1,     1,     2,         5,     5,     5,     7,     9,     3,     5,     3,     3,     3,
505         2,     1,     2         3,     5,     7,     5,     5,     5,     5,     5,     3,     5,
506           1,     1,     1,     5,     7,     3,     1,     1,     1,     1,
507           1,     1,     1,     1,     1,     1,     1,     1,     1,     1,
508           1,     1,     2
509  };  };
510    
511  /* YYDEFACT[STATE-NAME] -- Default rule to reduce with in state  /* YYDEFACT[STATE-NAME] -- Default rule to reduce with in state
# Line 455  static const unsigned char yyr2[] = Line 514  static const unsigned char yyr2[] =
514  static const unsigned char yydefact[] =  static const unsigned char yydefact[] =
515  {  {
516         0,     8,     9,     0,     0,     0,     0,     0,     0,     0,         0,     8,     9,     0,     0,     0,     0,     0,     0,     0,
517         0,    22,     0,     2,     6,     7,     0,     0,     0,     0,         0,     0,     0,     0,    25,     0,     2,     6,     7,     0,
518         0,     0,     0,     0,     1,     0,     0,    61,    12,    11,         0,     0,     0,     0,     0,     0,     0,     0,     0,     0,
519        10,    13,    14,     0,    23,    24,     0,    15,     0,     0,         1,     0,     0,    91,    12,    11,    10,    13,    14,     0,
520        16,     0,     0,     0,     0,     0,     3,     0,    62,     0,        38,    39,    47,     0,     0,     0,     0,    43,     0,     0,
521         0,     0,     0,     0,     0,     0,     0,     0,     4,     0,        15,     0,    16,     0,    17,    72,    18,     0,     0,    19,
522         0,     0,     0,     0,    58,    30,     0,    55,    57,    31,         0,     0,     0,     0,    21,    26,    30,    29,    28,    27,
523         0,    53,    47,    17,     0,     0,     0,     0,     0,     0,        31,    22,    32,    36,    35,    34,    33,    37,    23,     0,
524        18,    49,    19,    20,    52,    21,     0,     0,     0,     0,         3,     0,    92,     0,     0,     0,     0,     0,     0,     0,
525         0,     0,    60,    59,     0,     0,     0,     0,     0,     0,         0,     0,     0,     0,     0,     0,     0,     0,     0,     4,
526         0,    25,    38,    39,     0,    27,    28,    29,    58,     0,         0,     0,     0,     0,     0,     0,     0,     0,     0,     0,
527        56,    41,     0,     0,     0,     0,     0,     0,     0,     0,        57,    58,    86,     0,    59,     0,    87,    60,     0,    84,
528         0,     0,     0,     0,     0,     0,    26,    40,    50,    32,        80,    20,     0,     0,     0,     0,     0,     0,     0,    55,
529        42,    43,    33,    34,    54,    51,    35,    44,    36,    45,         0,     0,    24,     0,     0,     0,     0,     0,     0,     0,
530        46,    37         0,     0,     0,     0,     0,     0,     0,     0,     0,     0,
531           0,     0,     0,     0,     0,     0,    48,    70,    71,     0,
532          50,    51,    52,     0,     0,    44,    40,     0,    56,     0,
533           0,    81,     0,    75,     0,     0,     0,     0,     0,     0,
534           0,     0,     0,     0,     0,     0,     0,     0,     0,     0,
535           0,     0,     0,     0,     0,     0,     0,     0,     0,     0,
536          49,    45,     0,    41,     0,    90,    89,    88,    68,     0,
537          73,    82,     0,    61,    63,    76,    85,    64,    83,    65,
538          66,    77,    78,    79,    67,     0,    53,     0,     0,     0,
539           0,     0,     0,    46,    42,    69,    74,    62,    54
540  };  };
541    
542  /* YYDEFGOTO[NTERM-NUM]. */  /* YYDEFGOTO[NTERM-NUM]. */
543  static const short yydefgoto[] =  static const short yydefgoto[] =
544  {  {
545        -1,    12,    13,    14,    15,    37,    40,    80,   104,    65,        -1,    15,    16,    17,    18,    71,    78,    50,    64,    52,
546        69,   132,   138,   141,    73,   109,    82,   129,   136,    83,        54,    59,   129,   168,   159,    56,   114,   117,   214,   220,
547        70,   133,    66,    67,    68       224,   121,   172,   212,   219,   118,   217,   115,   208,   116
548  };  };
549    
550  /* YYPACT[STATE-NUM] -- Index in YYTABLE of the portion describing  /* YYPACT[STATE-NUM] -- Index in YYTABLE of the portion describing
551     STATE-NUM.  */     STATE-NUM.  */
552  #define YYPACT_NINF -56  #define YYPACT_NINF -198
553  static const yysigned_char yypact[] =  static const short yypact[] =
554  {  {
555         4,   -56,   -56,    21,    33,    67,    74,    75,    76,    77,         3,  -198,  -198,    -1,     1,    30,    53,    81,    83,   115,
556        78,   -56,    47,   -56,    20,   -56,    -9,     9,    35,    14,       116,   120,   121,   122,  -198,    21,  -198,    98,  -198,    22,
557        50,    32,    59,    66,   -56,     4,    79,   -56,   -56,   -56,        43,   -10,    20,    82,    40,   105,     8,    11,    33,   106,
558       -56,    84,   -56,    82,   -56,   -56,    83,   -56,    85,    86,      -198,     3,   124,  -198,  -198,  -198,  -198,   131,  -198,   128,
559       -56,    87,    88,    89,    91,    92,   -56,     4,   -56,   -17,      -198,  -198,  -198,   129,   130,   132,   133,  -198,   134,   135,
560        80,    45,    96,    95,    27,    97,    45,    95,   -56,    98,      -198,   136,  -198,   137,  -198,  -198,  -198,   138,   139,  -198,
561        99,   100,   101,   102,   -56,   -56,   103,    46,    84,   -56,       140,   141,   142,   143,  -198,  -198,  -198,  -198,  -198,  -198,
562       104,    84,   -56,   -56,   105,   106,   107,   108,   109,   110,      -198,  -198,  -198,  -198,  -198,  -198,  -198,  -198,  -198,   144,
563       -56,   -56,   -56,   -56,    46,   -56,    95,    36,    95,    95,      -198,     3,  -198,    79,   123,   125,   126,   127,   145,   147,
564        96,    63,   -56,    84,    95,    95,    95,    95,    95,    95,       149,   153,    28,   149,   154,    51,   155,   156,   154,  -198,
565        95,   -56,   -56,   -56,   111,   -56,   -56,   -56,   112,   113,       157,   158,   159,   160,   161,   164,   165,   166,   167,   171,
566        46,   -56,   115,   116,   117,   118,   119,   120,    95,    95,         2,  -198,  -198,   173,  -198,   175,   131,  -198,   176,   131,
567       122,    37,    45,   123,    53,    73,   -56,   -56,   -56,   -56,      -198,  -198,   177,   178,   179,   180,   181,   182,   183,  -198,
568       -56,   -56,   -56,   -56,    46,   -56,   -56,   -56,   -56,   -56,       184,   185,  -198,   154,    68,   154,   154,   149,   188,   189,
569       -56,   -56       190,   149,   149,   149,   101,   191,   154,   154,   154,   154,
570         154,   154,   154,   154,   192,   149,  -198,  -198,  -198,   193,
571        -198,  -198,  -198,   194,   195,  -198,   131,     7,   196,    56,
572         197,  -198,   198,  -198,   199,   200,   201,   202,   205,   206,
573         207,   208,    66,   154,   211,   212,   149,   149,   109,   191,
574         154,   213,   214,   149,   148,   215,   149,   114,   149,   109,
575        -198,  -198,   216,    99,    88,  -198,  -198,  -198,  -198,   217,
576        -198,  -198,   218,  -198,  -198,   131,  -198,  -198,  -198,  -198,
577        -198,   131,  -198,  -198,  -198,    89,  -198,   149,   149,   109,
578         154,   213,   109,   131,   196,  -198,  -198,  -198,  -198
579  };  };
580    
581  /* YYPGOTO[NTERM-NUM].  */  /* YYPGOTO[NTERM-NUM].  */
582  static const yysigned_char yypgoto[] =  static const short yypgoto[] =
583  {  {
584       -56,   -56,   -23,   -56,   -56,   -56,   -56,   -56,   -56,   -56,      -198,  -198,   -24,  -198,  -198,  -198,  -198,  -198,  -198,  -198,
585       -56,   -56,   -56,   -56,   -54,   -56,   -56,   -56,   -56,   -56,      -198,  -198,  -198,   -66,  -198,  -198,  -198,  -198,  -198,  -198,
586        11,   -56,   -56,   -55,   -14      -198,   -97,   -26,   -33,  -198,    62,  -198,    77,  -197,   -17
587  };  };
588    
589  /* YYTABLE[YYPACT[STATE-NUM]].  What to do in state STATE-NUM.  If  /* YYTABLE[YYPACT[STATE-NUM]].  What to do in state STATE-NUM.  If
590     positive, shift that token.  If negative, reduce the rule which     positive, shift that token.  If negative, reduce the rule which
591     number is the opposite.  If zero, do what YYDEFACT says.     number is the opposite.  If zero, do what YYDEFACT says.
592     If YYTABLE_NINF, syntax error.  */     If YYTABLE_NINF, syntax error.  */
593  #define YYTABLE_NINF -49  #define YYTABLE_NINF -6
594  static const short yytable[] =  static const short yytable[] =
595  {  {
596        31,    84,    46,    85,    -5,     1,    59,    60,    61,    62,        37,   132,   226,    -5,     1,    82,    19,    80,    20,   143,
597        32,    -5,    -5,     2,     3,     4,     5,     6,     7,     8,        82,    -5,    -5,     2,   186,     3,     4,     5,     6,     7,
598         9,    10,    11,    27,    58,    28,    29,    16,    33,    30,         8,    30,     9,    10,    11,    12,    13,    14,    51,    31,
599        34,    35,   101,    41,   105,   106,   110,    36,    71,    17,        32,    33,   235,    61,   112,   238,   156,    21,   160,   161,
600       111,   112,   113,   114,   115,   116,   117,    24,    27,    27,        65,    66,    67,    68,    69,    62,   113,    38,    63,   173,
601        64,    92,    43,    93,    25,    26,    74,    75,    76,    77,       174,   175,   176,   177,   178,   179,   180,    99,    53,    82,
602        78,    79,    38,    39,   126,   127,    27,   134,   108,    42,        22,    70,    72,    73,    74,    75,    76,   188,    39,    82,
603        93,   102,   103,    18,   130,   131,    71,   139,   140,    44,        40,    41,    42,   110,    57,    58,   119,   199,    43,    44,
604        19,    20,    21,    22,    23,    45,    47,    48,    49,    50,        45,    46,    47,    77,    48,    49,   200,   122,    23,   123,
605       137,    51,    52,    53,    54,    55,    93,    56,    57,    27,        24,    82,    82,   210,   124,   125,   126,   127,   128,   229,
606        72,   107,    81,    63,    86,    87,    88,    89,    90,    91,       232,    33,    82,    34,    33,    35,   228,   112,    36,   100,
607        94,    95,    96,    97,    98,    99,   100,   118,   -48,   119,       101,   102,   103,   205,   206,   207,   157,   158,   222,   223,
608        93,   120,   121,   122,   123,   124,   125,   128,   135       119,    55,    25,    26,   166,   167,   169,    27,    28,    29,
609          60,    79,    81,   236,    82,    83,    84,    85,   182,    86,
610          87,    88,    89,    90,    91,    92,    93,    94,    95,    96,
611          97,    98,    33,   104,   216,   105,   106,   107,   111,   120,
612         130,   131,   234,   209,   133,   134,   135,   136,   137,   203,
613         204,   138,   139,   140,   141,   108,   215,   109,   142,   221,
614         144,   225,   145,   146,   147,   148,   149,   150,   151,   152,
615         153,   154,   155,   163,   164,   165,   171,   181,   237,   162,
616         183,   184,   185,   187,   189,   190,   191,   192,   193,   194,
617         233,   169,   195,   196,   197,   198,   201,   202,   211,   213,
618         218,   170,     0,   227,   230,   231
619  };  };
620    
621  static const unsigned char yycheck[] =  static const short yycheck[] =
622  {  {
623        14,    56,    25,    57,     0,     1,    23,    24,    25,    26,        17,    98,   199,     0,     1,     3,     7,    31,     7,     7,
624        19,     7,     8,     9,    10,    11,    12,    13,    14,    15,         3,     8,     9,    10,     7,    12,    13,    14,    15,    16,
625        16,    17,    18,     3,    47,     5,     6,     6,    19,     9,        17,     0,    19,    20,    21,    22,    23,    24,    38,     8,
626        21,    22,    86,    19,    88,    89,    91,    28,    52,     6,         9,     3,   229,    25,     6,   232,   133,     7,   135,   136,
627        94,    95,    96,    97,    98,    99,   100,     0,     3,     3,        29,    30,    31,    32,    33,    37,    18,    25,    40,   146,
628         5,     5,    20,    67,     7,     8,    29,    30,    31,    32,       147,   148,   149,   150,   151,   152,   153,    81,    38,     3,
629        33,    34,    27,    28,   118,   119,     3,   122,     5,    19,         7,    50,    29,    30,    31,    32,    33,    11,    25,     3,
630        84,    35,    36,     6,    37,    38,    90,     4,     5,    20,        27,    28,    29,    90,    34,    35,    93,    11,    35,    36,
631         6,     6,     6,     6,     6,    19,     7,     3,     6,     6,        37,    38,    39,    50,    41,    42,   183,    36,     7,    38,
632        37,     6,     6,     6,     6,     6,   110,     6,     6,     3,         7,     3,     3,   190,    43,    44,    45,    46,    47,    11,
633         5,    90,     5,    23,     6,     6,     6,     6,     6,     6,        11,     3,     3,     5,     3,     7,     7,     6,    10,    30,
634         6,     6,     6,     6,     6,     6,     6,     6,     6,     6,        31,    32,    33,     4,     5,     6,    48,    49,     4,     5,
635       134,     6,     6,     6,     6,     6,     6,     5,     5       137,    39,     7,     7,   141,   142,   143,     7,     7,     7,
636          25,    25,     8,   230,     3,     7,     7,     7,   155,     7,
637           7,     7,     7,     7,     7,     7,     7,     7,     7,     7,
638           7,     7,     3,    30,     6,    30,    30,    30,     5,     5,
639           5,     5,   228,   189,     7,     7,     7,     7,     7,   186,
640         187,     7,     7,     7,     7,    30,   193,    30,     7,   196,
641           7,   198,     7,     7,     7,     7,     7,     7,     7,     7,
642           7,     7,     7,     5,     5,     5,     5,     5,   231,   137,
643           7,     7,     7,     7,     7,     7,     7,     7,     7,     7,
644         227,   228,     7,     7,     7,     7,     5,     5,     5,     5,
645           5,   144,    -1,     7,     7,     7
646  };  };
647    
648  /* YYSTOS[STATE-NUM] -- The (internal number of the) accessing  /* YYSTOS[STATE-NUM] -- The (internal number of the) accessing
649     symbol of state STATE-NUM.  */     symbol of state STATE-NUM.  */
650  static const unsigned char yystos[] =  static const unsigned char yystos[] =
651  {  {
652         0,     1,     9,    10,    11,    12,    13,    14,    15,    16,         0,     1,    10,    12,    13,    14,    15,    16,    17,    19,
653        17,    18,    40,    41,    42,    43,     6,     6,     6,     6,        20,    21,    22,    23,    24,    52,    53,    54,    55,     7,
654         6,     6,     6,     6,     0,     7,     8,     3,     5,     6,         7,     7,     7,     7,     7,     7,     7,     7,     7,     7,
655         9,    63,    19,    19,    21,    22,    28,    44,    27,    28,         0,     8,     9,     3,     5,     7,    10,    80,    25,    25,
656        45,    19,    19,    20,    20,    19,    41,     7,     3,     6,        27,    28,    29,    35,    36,    37,    38,    39,    41,    42,
657         6,     6,     6,     6,     6,     6,     6,     6,    41,    23,        58,    38,    60,    38,    61,    39,    66,    34,    35,    62,
658        24,    25,    26,    23,     5,    48,    61,    62,    63,    49,        25,    25,    37,    40,    59,    29,    30,    31,    32,    33,
659        59,    63,     5,    53,    29,    30,    31,    32,    33,    34,        50,    56,    29,    30,    31,    32,    33,    50,    57,    25,
660        46,     5,    55,    58,    62,    53,     6,     6,     6,     6,        53,     8,     3,     7,     7,     7,     7,     7,     7,     7,
661         6,     6,     5,    63,     6,     6,     6,     6,     6,     6,         7,     7,     7,     7,     7,     7,     7,     7,     7,    53,
662         6,    53,    35,    36,    47,    53,    53,    59,     5,    54,        30,    31,    32,    33,    30,    30,    30,    30,    30,    30,
663        62,    53,    53,    53,    53,    53,    53,    53,     6,     6,        80,     5,     6,    18,    67,    78,    80,    68,    76,    80,
664         6,     6,     6,     6,     6,     6,    53,    53,     5,    56,         5,    72,    36,    38,    43,    44,    45,    46,    47,    63,
665        37,    38,    50,    60,    62,     5,    57,    37,    51,     4,         5,     5,    72,     7,     7,     7,     7,     7,     7,     7,
666         5,    52         7,     7,     7,     7,     7,     7,     7,     7,     7,     7,
667           7,     7,     7,     7,     7,     7,    72,    48,    49,    65,
668          72,    72,    76,     5,     5,     5,    80,    80,    64,    80,
669          78,     5,    73,    72,    72,    72,    72,    72,    72,    72,
670          72,     5,    80,     7,     7,     7,     7,     7,    11,     7,
671           7,     7,     7,     7,     7,     7,     7,     7,     7,    11,
672          72,     5,     5,    80,    80,     4,     5,     6,    79,    73,
673          72,     5,    74,     5,    69,    80,     6,    77,     5,    75,
674          70,    80,     4,     5,    71,    80,    79,     7,     7,    11,
675           7,     7,    11,    80,    64,    79,    72,    74,    79
676  };  };
677    
678  #if ! defined (YYSIZE_T) && defined (__SIZE_TYPE__)  #if ! defined (YYSIZE_T) && defined (__SIZE_TYPE__)
# Line 1203  yyreduce: Line 1309  yyreduce:
1309    
1310    case 17:    case 17:
1311  #line 98 "lscp.y"  #line 98 "lscp.y"
1312      { yyval.String = LSCPSERVER->RemoveChannel(yyvsp[0].Number);             }      { yyval.String = yyvsp[0].String;                                        }
1313      break;      break;
1314    
1315    case 18:    case 18:
# Line 1213  yyreduce: Line 1319  yyreduce:
1319    
1320    case 19:    case 19:
1321  #line 100 "lscp.y"  #line 100 "lscp.y"
1322      { yyval.String = LSCPSERVER->SubscribeNotification(yyvsp[0].Number);     }      { yyval.String = yyvsp[0].String;                                        }
1323      break;      break;
1324    
1325    case 20:    case 20:
1326  #line 101 "lscp.y"  #line 101 "lscp.y"
1327      { yyval.String = LSCPSERVER->UnsubscribeNotification(yyvsp[0].String);   }      { yyval.String = LSCPSERVER->RemoveChannel(yyvsp[0].Number);             }
1328      break;      break;
1329    
1330    case 21:    case 21:
1331  #line 102 "lscp.y"  #line 102 "lscp.y"
1332      { yyval.String = LSCPSERVER->ResetChannel(yyvsp[0].Number);              }      { yyval.String = yyvsp[0].String;                                        }
1333      break;      break;
1334    
1335    case 22:    case 22:
1336  #line 103 "lscp.y"  #line 103 "lscp.y"
1337      { LSCPSERVER->AnswerClient("Bye!\r\n"); return 0; }      { yyval.String = yyvsp[0].String;                                        }
1338      break;      break;
1339    
1340    case 23:    case 23:
1341  #line 106 "lscp.y"  #line 104 "lscp.y"
1342      { yyval.String = LSCPSERVER->GetAvailableEngines(); }      { yyval.String = yyvsp[0].String;                                        }
1343      break;      break;
1344    
1345    case 24:    case 24:
1346  #line 107 "lscp.y"  #line 105 "lscp.y"
1347      { yyval.String = LSCPSERVER->GetChannels();         }      { yyval.String = LSCPSERVER->ResetChannel(yyvsp[0].Number);              }
1348      break;      break;
1349    
1350    case 25:    case 25:
1351  #line 108 "lscp.y"  #line 106 "lscp.y"
1352      { yyval.String = LSCPSERVER->GetChannelInfo(yyvsp[0].Number);    }      { LSCPSERVER->AnswerClient("Bye!\r\n"); return 0; }
1353      break;      break;
1354    
1355    case 26:    case 26:
1356  #line 109 "lscp.y"  #line 109 "lscp.y"
1357      { yyval.String = LSCPSERVER->GetBufferFill(yyvsp[-2].FillResponse, yyvsp[0].Number); }      { yyval.String = LSCPSERVER->SubscribeNotification(event_channels); }
1358      break;      break;
1359    
1360    case 27:    case 27:
1361  #line 110 "lscp.y"  #line 110 "lscp.y"
1362      { yyval.String = LSCPSERVER->GetStreamCount(yyvsp[0].Number);    }      { yyval.String = LSCPSERVER->SubscribeNotification(event_voice_count); }
1363      break;      break;
1364    
1365    case 28:    case 28:
1366  #line 111 "lscp.y"  #line 111 "lscp.y"
1367      { yyval.String = LSCPSERVER->GetVoiceCount(yyvsp[0].Number);     }      { yyval.String = LSCPSERVER->SubscribeNotification(event_stream_count); }
1368      break;      break;
1369    
1370    case 29:    case 29:
1371  #line 112 "lscp.y"  #line 112 "lscp.y"
1372      { yyval.String = LSCPSERVER->GetEngineInfo(yyvsp[0].String);     }      { yyval.String = LSCPSERVER->SubscribeNotification(event_channel_buffer_fill); }
1373      break;      break;
1374    
1375    case 30:    case 30:
1376  #line 115 "lscp.y"  #line 113 "lscp.y"
1377      { yyval.String = yyvsp[0].String; }      { yyval.String = LSCPSERVER->SubscribeNotification(event_channel_info); }
1378      break;      break;
1379    
1380    case 31:    case 31:
1381  #line 116 "lscp.y"  #line 114 "lscp.y"
1382      { yyval.String = yyvsp[0].String; }      { yyval.String = LSCPSERVER->SubscribeNotification(event_misc); }
1383      break;      break;
1384    
1385    case 32:    case 32:
1386  #line 119 "lscp.y"  #line 117 "lscp.y"
1387      { yyval.String = LSCPSERVER->SetAudioOutputChannel(yyvsp[0].Number, yyvsp[-2].Number); }      { yyval.String = LSCPSERVER->UnsubscribeNotification(event_channels); }
1388      break;      break;
1389    
1390    case 33:    case 33:
1391  #line 120 "lscp.y"  #line 118 "lscp.y"
1392      { yyval.String = LSCPSERVER->SetAudioOutputType(yyvsp[0].AudioOutput, yyvsp[-2].Number);    }      { yyval.String = LSCPSERVER->UnsubscribeNotification(event_voice_count); }
1393      break;      break;
1394    
1395    case 34:    case 34:
1396  #line 121 "lscp.y"  #line 119 "lscp.y"
1397      { yyval.String = LSCPSERVER->SetMIDIInputPort(yyvsp[0].String, yyvsp[-2].Number);      }      { yyval.String = LSCPSERVER->UnsubscribeNotification(event_stream_count); }
1398      break;      break;
1399    
1400    case 35:    case 35:
1401  #line 122 "lscp.y"  #line 120 "lscp.y"
1402      { yyval.String = LSCPSERVER->SetMIDIInputChannel(yyvsp[0].Number, yyvsp[-2].Number);   }      { yyval.String = LSCPSERVER->UnsubscribeNotification(event_channel_buffer_fill); }
1403      break;      break;
1404    
1405    case 36:    case 36:
1406  #line 123 "lscp.y"  #line 121 "lscp.y"
1407      { yyval.String = LSCPSERVER->SetMIDIInputType(yyvsp[0].MidiInput, yyvsp[-2].Number);      }      { yyval.String = LSCPSERVER->UnsubscribeNotification(event_channel_info); }
1408      break;      break;
1409    
1410    case 37:    case 37:
1411  #line 124 "lscp.y"  #line 122 "lscp.y"
1412      { yyval.String = LSCPSERVER->SetVolume(yyvsp[0].Dotnum, yyvsp[-2].Number);             }      { yyval.String = LSCPSERVER->UnsubscribeNotification(event_misc); }
1413      break;      break;
1414    
1415    case 38:    case 38:
1416  #line 127 "lscp.y"  #line 125 "lscp.y"
1417      { yyval.FillResponse = fill_response_bytes;      }      { yyval.String = LSCPSERVER->GetAvailableEngines();                          }
1418      break;      break;
1419    
1420    case 39:    case 39:
1421  #line 128 "lscp.y"  #line 126 "lscp.y"
1422      { yyval.FillResponse = fill_response_percentage; }      { yyval.String = LSCPSERVER->GetAvailableAudioOutputDrivers();               }
1423      break;      break;
1424    
1425    case 40:    case 40:
1426  #line 131 "lscp.y"  #line 127 "lscp.y"
1427      { yyval.String = LSCPSERVER->LoadInstrument(yyvsp[-4].String, yyvsp[-2].Number, yyvsp[0].Number); }      { yyval.String = LSCPSERVER->GetAudioOutputDriverInfo(yyvsp[0].String);                   }
1428      break;      break;
1429    
1430    case 41:    case 41:
1431  #line 134 "lscp.y"  #line 128 "lscp.y"
1432      { yyval.String = LSCPSERVER->LoadEngine(yyvsp[-2].String, yyvsp[0].Number); }      { yyval.String = LSCPSERVER->GetAudioOutputDriverParameterInfo(yyvsp[-2].String, yyvsp[0].String);      }
1433      break;      break;
1434    
1435    case 42:    case 42:
1436  #line 137 "lscp.y"  #line 129 "lscp.y"
1437      { yyval.AudioOutput = AudioOutputDevice::type_alsa; }      { yyval.String = LSCPSERVER->GetAudioOutputDriverParameterInfo(yyvsp[-4].String, yyvsp[-2].String, yyvsp[0].KeyValList);  }
1438      break;      break;
1439    
1440    case 43:    case 43:
1441  #line 138 "lscp.y"  #line 130 "lscp.y"
1442      { yyval.AudioOutput = AudioOutputDevice::type_jack; }      { yyval.String = LSCPSERVER->GetAudioOutputDeviceCount();                    }
1443      break;      break;
1444    
1445    case 44:    case 44:
1446  #line 141 "lscp.y"  #line 131 "lscp.y"
1447      { yyval.MidiInput = MidiInputDevice::type_alsa; }      { yyval.String = LSCPSERVER->GetAudioOutputDeviceInfo(yyvsp[0].Number);                   }
1448        break;
1449    
1450      case 45:
1451    #line 132 "lscp.y"
1452        { yyval.String = LSCPSERVER->GetAudioOutputChannelInfo(yyvsp[-2].Number, yyvsp[0].Number);              }
1453      break;      break;
1454    
1455    case 46:    case 46:
1456  #line 145 "lscp.y"  #line 133 "lscp.y"
1457      { yyval.Dotnum = yyvsp[0].Number; }      { yyval.String = LSCPSERVER->GetAudioOutputChannelParameterInfo(yyvsp[-4].Number, yyvsp[-2].Number, yyvsp[0].String); }
1458        break;
1459    
1460      case 47:
1461    #line 134 "lscp.y"
1462        { yyval.String = LSCPSERVER->GetChannels();                                  }
1463        break;
1464    
1465      case 48:
1466    #line 135 "lscp.y"
1467        { yyval.String = LSCPSERVER->GetChannelInfo(yyvsp[0].Number);                             }
1468        break;
1469    
1470      case 49:
1471    #line 136 "lscp.y"
1472        { yyval.String = LSCPSERVER->GetBufferFill(yyvsp[-2].FillResponse, yyvsp[0].Number);                          }
1473        break;
1474    
1475      case 50:
1476    #line 137 "lscp.y"
1477        { yyval.String = LSCPSERVER->GetStreamCount(yyvsp[0].Number);                             }
1478        break;
1479    
1480      case 51:
1481    #line 138 "lscp.y"
1482        { yyval.String = LSCPSERVER->GetVoiceCount(yyvsp[0].Number);                              }
1483        break;
1484    
1485      case 52:
1486    #line 139 "lscp.y"
1487        { yyval.String = LSCPSERVER->GetEngineInfo(yyvsp[0].String);                              }
1488        break;
1489    
1490      case 53:
1491    #line 142 "lscp.y"
1492        { yyval.String = LSCPSERVER->SetAudioOutputDeviceParameter(yyvsp[-4].Number, yyvsp[-2].String, yyvsp[0].String);      }
1493        break;
1494    
1495      case 54:
1496    #line 143 "lscp.y"
1497        { yyval.String = LSCPSERVER->SetAudioOutputChannelParameter(yyvsp[-6].Number, yyvsp[-4].Number, yyvsp[-2].String, yyvsp[0].String); }
1498        break;
1499    
1500      case 55:
1501    #line 144 "lscp.y"
1502        { yyval.String = yyvsp[0].String;                                                         }
1503      break;      break;
1504    
1505    case 56:    case 56:
1506  #line 173 "lscp.y"  #line 147 "lscp.y"
1507      { yyval.String = yyvsp[-2].String + ' ' + yyvsp[0].String; }      { yyval.String = LSCPSERVER->CreateAudioOutputDevice(yyvsp[-2].String,yyvsp[0].KeyValList); }
1508      break;      break;
1509    
1510    case 57:    case 57:
1511  #line 176 "lscp.y"  #line 148 "lscp.y"
1512      { yyval.String = yyvsp[0].String;                                             }      { yyval.String = LSCPSERVER->CreateAudioOutputDevice(yyvsp[0].String); }
1513      break;      break;
1514    
1515    case 58:    case 58:
1516  #line 177 "lscp.y"  #line 151 "lscp.y"
1517      { std::stringstream ss; ss << yyvsp[0].Number; yyval.String = ss.str();       }      { yyval.String = LSCPSERVER->DestroyAudioOutputDevice(yyvsp[0].Number); }
1518      break;      break;
1519    
1520    case 59:    case 59:
1521  #line 178 "lscp.y"  #line 154 "lscp.y"
1522      { yyval.String = yyvsp[-1].String + yyvsp[0].String;                                        }      { yyval.String = yyvsp[0].String; }
1523      break;      break;
1524    
1525    case 60:    case 60:
1526  #line 179 "lscp.y"  #line 155 "lscp.y"
1527      { std::stringstream ss; ss << yyvsp[-1].String << yyvsp[0].Number; yyval.String = ss.str(); }      { yyval.String = yyvsp[0].String; }
1528      break;      break;
1529    
1530    case 61:    case 61:
1531    #line 158 "lscp.y"
1532        { yyval.String = LSCPSERVER->SetAudioOutputDevice(yyvsp[0].Number, yyvsp[-2].Number);      }
1533        break;
1534    
1535      case 62:
1536    #line 159 "lscp.y"
1537        { yyval.String = LSCPSERVER->SetAudioOutputChannel(yyvsp[-2].Number, yyvsp[0].Number, yyvsp[-4].Number); }
1538        break;
1539    
1540      case 63:
1541    #line 160 "lscp.y"
1542        { yyval.String = LSCPSERVER->SetAudioOutputType(yyvsp[0].String, yyvsp[-2].Number);        }
1543        break;
1544    
1545      case 64:
1546    #line 161 "lscp.y"
1547        { yyval.String = LSCPSERVER->SetMIDIInputPort(yyvsp[0].String, yyvsp[-2].Number);          }
1548        break;
1549    
1550      case 65:
1551    #line 162 "lscp.y"
1552        { yyval.String = LSCPSERVER->SetMIDIInputChannel(yyvsp[0].Number, yyvsp[-2].Number);       }
1553        break;
1554    
1555      case 66:
1556    #line 163 "lscp.y"
1557        { yyval.String = LSCPSERVER->SetMIDIInputType(yyvsp[0].String, yyvsp[-2].Number);          }
1558        break;
1559    
1560      case 67:
1561    #line 164 "lscp.y"
1562        { yyval.String = LSCPSERVER->SetVolume(yyvsp[0].Dotnum, yyvsp[-2].Number);                 }
1563        break;
1564    
1565      case 68:
1566    #line 167 "lscp.y"
1567        { yyval.KeyValList[yyvsp[-2].String] = yyvsp[0].String;          }
1568        break;
1569    
1570      case 69:
1571    #line 168 "lscp.y"
1572        { yyval.KeyValList = yyvsp[-4].KeyValList; yyval.KeyValList[yyvsp[-2].String] = yyvsp[0].String; }
1573        break;
1574    
1575      case 70:
1576    #line 171 "lscp.y"
1577        { yyval.FillResponse = fill_response_bytes;      }
1578        break;
1579    
1580      case 71:
1581    #line 172 "lscp.y"
1582        { yyval.FillResponse = fill_response_percentage; }
1583        break;
1584    
1585      case 72:
1586    #line 175 "lscp.y"
1587        { yyval.String = LSCPSERVER->GetAudioOutputDevices(); }
1588        break;
1589    
1590      case 73:
1591    #line 178 "lscp.y"
1592        { yyval.String = LSCPSERVER->LoadInstrument(yyvsp[-4].String, yyvsp[-2].Number, yyvsp[0].Number); }
1593        break;
1594    
1595      case 74:
1596    #line 179 "lscp.y"
1597        { yyval.String = LSCPSERVER->LoadInstrument(yyvsp[-4].String, yyvsp[-2].Number, yyvsp[0].Number, true); }
1598        break;
1599    
1600      case 75:
1601  #line 182 "lscp.y"  #line 182 "lscp.y"
1602        { yyval.String = LSCPSERVER->LoadEngine(yyvsp[-2].String, yyvsp[0].Number); }
1603        break;
1604    
1605      case 79:
1606    #line 192 "lscp.y"
1607        { yyval.Dotnum = yyvsp[0].Number; }
1608        break;
1609    
1610      case 88:
1611    #line 217 "lscp.y"
1612        { yyval.String = yyvsp[0].String;                                             }
1613        break;
1614    
1615      case 89:
1616    #line 218 "lscp.y"
1617        { std::stringstream ss; ss << yyvsp[0].Number; yyval.String = ss.str();       }
1618        break;
1619    
1620      case 90:
1621    #line 219 "lscp.y"
1622        { std::stringstream ss; ss << yyvsp[0].Dotnum; yyval.String = ss.str();       }
1623        break;
1624    
1625      case 91:
1626    #line 222 "lscp.y"
1627      { std::string s; s = yyvsp[0].Char; yyval.String = s; }      { std::string s; s = yyvsp[0].Char; yyval.String = s; }
1628      break;      break;
1629    
1630    case 62:    case 92:
1631  #line 183 "lscp.y"  #line 223 "lscp.y"
1632      { yyval.String = yyvsp[-1].String + yyvsp[0].Char;                  }      { yyval.String = yyvsp[-1].String + yyvsp[0].Char;                  }
1633      break;      break;
1634    
# Line 1385  yyreduce: Line 1636  yyreduce:
1636      }      }
1637    
1638  /* Line 999 of yacc.c.  */  /* Line 999 of yacc.c.  */
1639  #line 1389 "y.tab.c"  #line 1639 "y.tab.c"
1640    
1641    yyvsp -= yylen;    yyvsp -= yylen;
1642    yyssp -= yylen;    yyssp -= yylen;
# Line 1579  yyreturn: Line 1830  yyreturn:
1830  }  }
1831    
1832    
1833  #line 186 "lscp.y"  #line 77 "lscp.y"
1834    
1835    
1836  /**  /**

Legend:
Removed from v.111  
changed lines
  Added in v.143

  ViewVC Help
Powered by ViewVC