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

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

  ViewVC Help
Powered by ViewVC