/[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 35 by schoenebeck, Fri Mar 5 13:46:15 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       ADD = 264,       CR = 264,
63       GET = 265,       HASH = 265,
64       LOAD = 266,       EQ = 266,
65       REMOVE = 267,       ADD = 267,
66       SET = 268,       GET = 268,
67       SUBSCRIBE = 269,       CREATE = 269,
68       UNSUBSCRIBE = 270,       DESTROY = 270,
69       RESET = 271,       LIST = 271,
70       QUIT = 272,       LOAD = 272,
71       CHANNEL = 273,       NON_MODAL = 273,
72       NOTIFICATION = 274,       REMOVE = 274,
73       AVAILABLE_ENGINES = 275,       SET = 275,
74       CHANNELS = 276,       SUBSCRIBE = 276,
75       INFO = 277,       UNSUBSCRIBE = 277,
76       BUFFER_FILL = 278,       RESET = 278,
77       STREAM_COUNT = 279,       QUIT = 279,
78       VOICE_COUNT = 280,       CHANNEL = 280,
79       INSTRUMENT = 281,       NOTIFICATION = 281,
80       ENGINE = 282,       AVAILABLE_ENGINES = 282,
81       AUDIO_OUTPUT_CHANNEL = 283,       AVAILABLE_AUDIO_OUTPUT_DRIVERS = 283,
82       AUDIO_OUTPUT_TYPE = 284,       CHANNELS = 284,
83       MIDI_INPUT_PORT = 285,       INFO = 285,
84       MIDI_INPUT_CHANNEL = 286,       BUFFER_FILL = 286,
85       MIDI_INPUT_TYPE = 287,       STREAM_COUNT = 287,
86       VOLUME = 288,       VOICE_COUNT = 288,
87       BYTES = 289,       INSTRUMENT = 289,
88       PERCENTAGE = 290,       ENGINE = 290,
89       ALSA = 291,       AUDIO_OUTPUT_CHANNEL = 291,
90       JACK = 292       AUDIO_OUTPUT_CHANNEL_PARAMETER = 292,
91         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 ADD 264  #define CR 264
121  #define GET 265  #define HASH 265
122  #define LOAD 266  #define EQ 266
123  #define REMOVE 267  #define ADD 267
124  #define SET 268  #define GET 268
125  #define SUBSCRIBE 269  #define CREATE 269
126  #define UNSUBSCRIBE 270  #define DESTROY 270
127  #define RESET 271  #define LIST 271
128  #define QUIT 272  #define LOAD 272
129  #define CHANNEL 273  #define NON_MODAL 273
130  #define NOTIFICATION 274  #define REMOVE 274
131  #define AVAILABLE_ENGINES 275  #define SET 275
132  #define CHANNELS 276  #define SUBSCRIBE 276
133  #define INFO 277  #define UNSUBSCRIBE 277
134  #define BUFFER_FILL 278  #define RESET 278
135  #define STREAM_COUNT 279  #define QUIT 279
136  #define VOICE_COUNT 280  #define CHANNEL 280
137  #define INSTRUMENT 281  #define NOTIFICATION 281
138  #define ENGINE 282  #define AVAILABLE_ENGINES 282
139  #define AUDIO_OUTPUT_CHANNEL 283  #define AVAILABLE_AUDIO_OUTPUT_DRIVERS 283
140  #define AUDIO_OUTPUT_TYPE 284  #define CHANNELS 284
141  #define MIDI_INPUT_PORT 285  #define INFO 285
142  #define MIDI_INPUT_CHANNEL 286  #define BUFFER_FILL 286
143  #define MIDI_INPUT_TYPE 287  #define STREAM_COUNT 287
144  #define VOLUME 288  #define VOICE_COUNT 288
145  #define BYTES 289  #define INSTRUMENT 289
146  #define PERCENTAGE 290  #define ENGINE 290
147  #define ALSA 291  #define AUDIO_OUTPUT_CHANNEL 291
148  #define JACK 292  #define AUDIO_OUTPUT_CHANNEL_PARAMETER 292
149    #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 183  typedef int YYSTYPE; Line 225  typedef int YYSTYPE;
225    
226    
227  /* Line 214 of yacc.c.  */  /* Line 214 of yacc.c.  */
228  #line 187 "y.tab.c"  #line 228 "y.tab.c"
229    
230  #if ! defined (yyoverflow) || YYERROR_VERBOSE  #if ! defined (yyoverflow) || YYERROR_VERBOSE
231    
# Line 280  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  22  #define YYFINAL  30
326  /* YYLAST -- Last index in YYTABLE.  */  /* YYLAST -- Last index in YYTABLE.  */
327  #define YYLAST   123  #define YYLAST   285
328    
329  /* YYNTOKENS -- Number of terminals. */  /* YYNTOKENS -- Number of terminals. */
330  #define YYNTOKENS  38  #define YYNTOKENS  59
331  /* YYNNTS -- Number of nonterminals. */  /* YYNNTS -- Number of nonterminals. */
332  #define YYNNTS  24  #define YYNNTS  31
333  /* YYNRULES -- Number of rules. */  /* YYNRULES -- Number of rules. */
334  #define YYNRULES  56  #define YYNRULES  104
335  /* YYNRULES -- Number of states. */  /* YYNRULES -- Number of states. */
336  #define YYNSTATES  136  #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   292  #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 332  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        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,    23,         0,     0,     3,     5,     9,    14,    15,    17,    19,    21,
388        27,    31,    37,    43,    49,    55,    61,    63,    65,    67,        23,    26,    29,    32,    35,    39,    43,    47,    51,    55,
389        73,    81,    87,    93,    99,   103,   107,   113,   119,   125,        59,    65,    69,    73,    77,    83,    85,    87,    89,    91,
390       131,   137,   143,   145,   147,   153,   157,   159,   161,   163,        93,    95,    97,    99,   101,   103,   105,   107,   109,   111,
391       165,   167,   169,   171,   173,   175,   177,   179,   181,   183,       113,   119,   127,   137,   139,   145,   153,   163,   165,   167,
392       185,   189,   191,   193,   196,   199,   201       173,   179,   187,   195,   205,   207,   213,   221,   227,   233,
393         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        39,     0,    -1,    40,    -1,    39,     7,    40,    -1,    39,        60,     0,    -1,    61,    -1,    60,     8,    61,    -1,    60,
404         8,     7,    40,    -1,    -1,    41,    -1,     1,    -1,     9,         9,     8,    61,    -1,    -1,    62,    -1,    63,    -1,     1,
405         6,    18,    -1,    10,     6,    42,    -1,    11,     6,    43,        -1,    10,    -1,    62,    10,    -1,    62,     7,    -1,    62,
406        -1,    12,     6,    18,     6,    51,    -1,    13,     6,    18,         5,    -1,    62,    89,    -1,    12,     7,    25,    -1,    13,
407         6,    44,    -1,    14,     6,    19,     6,    53,    -1,    15,         7,    66,    -1,    14,     7,    68,    -1,    15,     7,    69,
408         6,    19,     6,    56,    -1,    16,     6,    18,     6,    51,        -1,    16,     7,    74,    -1,    17,     7,    70,    -1,    19,
409        -1,    17,    -1,    20,    -1,    21,    -1,    18,     6,    22,         7,    25,     7,    83,    -1,    20,     7,    67,    -1,    21,
410         6,    51,    -1,    18,     6,    23,     6,    45,     6,    51,         7,    64,    -1,    22,     7,    65,    -1,    23,     7,    25,
411        -1,    18,     6,    24,     6,    51,    -1,    18,     6,    25,         7,    83,    -1,    24,    -1,    29,    -1,    33,    -1,    32,
412         6,    51,    -1,    27,     6,    22,     6,    57,    -1,    26,        -1,    31,    -1,    30,    -1,    58,    -1,    29,    -1,    33,
413         6,    46,    -1,    27,     6,    47,    -1,    28,     6,    51,        -1,    32,    -1,    31,    -1,    30,    -1,    58,    -1,    27,
414         6,    54,    -1,    29,     6,    51,     6,    48,    -1,    30,        -1,    51,    -1,    49,     7,    30,     7,    89,    -1,    50,
415         6,    51,     6,    58,    -1,    31,     6,    51,     6,    55,         7,    30,     7,    89,     7,    89,    -1,    50,     7,    30,
416        -1,    32,     6,    51,     6,    49,    -1,    33,     6,    51,         7,    89,     7,    89,     7,    72,    -1,    28,    -1,    41,
417         6,    50,    -1,    34,    -1,    35,    -1,    59,     6,    52,         7,    30,     7,    89,    -1,    42,     7,    30,     7,    89,
418         6,    51,    -1,    57,     6,    51,    -1,    36,    -1,    37,         7,    89,    -1,    42,     7,    30,     7,    89,     7,    89,
419        -1,    36,    -1,     4,    -1,     5,    -1,     5,    -1,     5,         7,    72,    -1,    39,    -1,    53,    -1,    38,     7,    30,
420        -1,     5,    -1,     5,    -1,     5,    -1,    60,    -1,    61,         7,     5,    -1,    52,     7,    30,     7,     5,    -1,    46,
421        -1,    60,    -1,    60,    -1,    59,     6,    60,    -1,    61,         7,    30,     7,     5,     7,     5,    -1,    36,     7,    30,
422        -1,     5,    -1,    60,    61,    -1,    60,     5,    -1,     3,         7,     5,     7,     5,    -1,    37,     7,    30,     7,     5,
423        -1,    61,     3,    -1         7,     5,     7,    89,    -1,    29,    -1,    25,     7,    30,
424           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,    76,    76,    77,    78,    81,    82,    83,    86,    87,         0,    78,    78,    79,    80,    83,    84,    85,    86,    89,
452        88,    89,    90,    91,    92,    93,    94,    97,    98,    99,        90,    91,    92,    93,    96,    97,    98,    99,   100,   101,
453       100,   101,   102,   103,   106,   107,   110,   111,   112,   113,       102,   103,   104,   105,   106,   107,   110,   111,   112,   113,
454       114,   115,   118,   119,   122,   125,   128,   129,   132,   135,       114,   115,   118,   119,   120,   121,   122,   123,   126,   127,
455       136,   139,   142,   145,   148,   151,   154,   157,   160,   163,       128,   129,   130,   131,   132,   133,   134,   135,   136,   137,
456       164,   167,   168,   169,   170,   173,   174       138,   139,   140,   141,   142,   143,   144,   145,   146,   147,
457         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 391  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", "ADD", "GET", "LOAD", "REMOVE", "SET", "SUBSCRIBE", "UNSUBSCRIBE",    "SP", "LF", "CR", "HASH", "EQ", "ADD", "GET", "CREATE", "DESTROY",
472    "RESET", "QUIT", "CHANNEL", "NOTIFICATION", "AVAILABLE_ENGINES",    "LIST", "LOAD", "NON_MODAL", "REMOVE", "SET", "SUBSCRIBE",
473    "CHANNELS", "INFO", "BUFFER_FILL", "STREAM_COUNT", "VOICE_COUNT",    "UNSUBSCRIBE", "RESET", "QUIT", "CHANNEL", "NOTIFICATION",
474    "INSTRUMENT", "ENGINE", "AUDIO_OUTPUT_CHANNEL", "AUDIO_OUTPUT_TYPE",    "AVAILABLE_ENGINES", "AVAILABLE_AUDIO_OUTPUT_DRIVERS", "CHANNELS",
475    "MIDI_INPUT_PORT", "MIDI_INPUT_CHANNEL", "MIDI_INPUT_TYPE", "VOLUME",    "INFO", "BUFFER_FILL", "STREAM_COUNT", "VOICE_COUNT", "INSTRUMENT",
476    "BYTES", "PERCENTAGE", "ALSA", "JACK", "$accept", "input", "line",    "ENGINE", "AUDIO_OUTPUT_CHANNEL", "AUDIO_OUTPUT_CHANNEL_PARAMETER",
477    "command", "get_instruction", "load_instruction",    "AUDIO_OUTPUT_DEVICE", "AUDIO_OUTPUT_DEVICES",
478    "set_chan_instruction", "buffer_size_type", "load_instr_args",    "AUDIO_OUTPUT_DEVICE_PARAMETER", "AUDIO_OUTPUT_DRIVER",
479    "load_engine_args", "audio_output_type", "midi_input_type", "volume",    "AUDIO_OUTPUT_DRIVER_PARAMETER", "AUDIO_OUTPUT_TYPE", "MIDI_INPUT",
480    "sampler_channel", "instrument_index", "udp_port",    "MIDI_INPUT_TYPE", "MIDI_INPUT_PORT", "MIDI_INPUT_CHANNEL", "VOLUME",
481    "audio_output_channel", "midi_input_channel", "session_id",    "MIDI_INPUT_DRIVER", "MIDI_INPUT_DRIVER_PARAMETER",
482    "engine_name", "midi_input_port", "filename", "alpha_num_string",    "AVAILABLE_MIDI_INPUT_DRIVERS", "MIDI_INPUT_DEVICE",
483    "string", 0    "MIDI_INPUT_DEVICES", "MIDI_INPUT_DEVICE_PARAMETER",
484      "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 416  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       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,    38,    39,    39,    39,    40,    40,    40,    41,    41,         0,    59,    60,    60,    60,    61,    61,    61,    61,    62,
515        41,    41,    41,    41,    41,    41,    41,    42,    42,    42,        62,    62,    62,    62,    63,    63,    63,    63,    63,    63,
516        42,    42,    42,    42,    43,    43,    44,    44,    44,    44,        63,    63,    63,    63,    63,    63,    64,    64,    64,    64,
517        44,    44,    45,    45,    46,    47,    48,    48,    49,    50,        64,    64,    65,    65,    65,    65,    65,    65,    66,    66,
518        50,    51,    52,    53,    54,    55,    56,    57,    58,    59,        66,    66,    66,    66,    66,    66,    66,    66,    66,    66,
519        59,    60,    60,    60,    60,    61,    61        66,    66,    66,    66,    66,    66,    66,    66,    66,    66,
520          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,     3,     3,         0,     2,     1,     3,     4,     0,     1,     1,     1,     1,
531         3,     5,     5,     5,     5,     5,     1,     1,     1,     5,         2,     2,     2,     2,     3,     3,     3,     3,     3,     3,
532         7,     5,     5,     5,     3,     3,     5,     5,     5,     5,         5,     3,     3,     3,     5,     1,     1,     1,     1,     1,
        5,     5,     1,     1,     5,     3,     1,     1,     1,     1,  
533         1,     1,     1,     1,     1,     1,     1,     1,     1,     1,         1,     1,     1,     1,     1,     1,     1,     1,     1,     1,
534         3,     1,     1,     2,     2,     1,     2         5,     7,     9,     1,     5,     7,     9,     1,     1,     5,
535           5,     7,     7,     9,     1,     5,     7,     5,     5,     5,
536           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 447  static const unsigned char yyr2[] = Line 545  static const unsigned char yyr2[] =
545     means the default is an error.  */     means the default is an error.  */
546  static const unsigned char yydefact[] =  static const unsigned char yydefact[] =
547  {  {
548         0,     7,     0,     0,     0,     0,     0,     0,     0,     0,         0,     8,     9,     0,     0,     0,     0,     0,     0,     0,
549        16,     0,     2,     6,     0,     0,     0,     0,     0,     0,         0,     0,     0,     0,    25,     0,     2,     6,     7,     0,
550         0,     0,     1,     0,     0,     8,     0,    17,    18,     0,         0,     0,     0,     0,     0,     0,     0,     0,     0,     0,
551         9,     0,     0,    10,     0,     0,     0,     0,     0,     3,         1,     0,     0,   103,    12,    11,    10,    13,    14,     0,
552          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,
560           0,     0,     0,     0,     0,     0,     0,     0,     0,     0,
561           0,     0,     0,    66,    67,    68,    69,    98,     0,    70,
562           0,    99,    71,     0,    97,    94,    20,     0,     0,     0,
563           0,     0,     0,    64,     0,     0,     0,     0,    24,     0,
564           0,     0,     0,     0,     0,     0,     0,     0,     0,     0,
565           0,     0,     0,     0,     0,     0,     0,     0,     0,     0,
566           0,     0,     0,     0,     0,     0,     0,    55,    80,    81,
567           0,    57,    58,    59,     0,     0,    49,    44,     0,     0,
568          40,     0,    50,    65,     0,     0,    95,     0,    86,     0,
569         0,     0,     0,     0,     0,     0,     0,     0,     0,     0,         0,     0,     0,     0,     0,     0,     0,     0,     0,     0,
        4,     0,     0,     0,     0,     0,    55,    52,    24,     0,  
       49,    51,    25,     0,    47,    41,    11,     0,     0,     0,  
        0,     0,     0,    12,    43,    13,    14,    46,    15,     0,  
        0,     0,     0,     0,     0,    54,    53,    56,     0,     0,  
        0,     0,     0,     0,     0,    19,    32,    33,     0,    21,  
       22,    23,    52,     0,    50,    35,     0,     0,     0,     0,  
570         0,     0,     0,     0,     0,     0,     0,     0,     0,     0,         0,     0,     0,     0,     0,     0,     0,     0,     0,     0,
571        20,    34,    44,    26,    36,    37,    27,    28,    48,    45,         0,     0,     0,     0,     0,     0,     0,     0,     0,    56,
572        29,    38,    30,    39,    40,    31        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,    11,    12,    13,    30,    33,    73,    98,    58,    62,        -1,    15,    16,    17,    18,    82,    89,    56,    75,    59,
583       126,   132,   135,    66,   103,    75,   123,   130,    76,    63,        62,    68,   153,   203,   190,    65,   139,   142,   255,   258,
584       127,    59,    60,    61       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 -48  #define YYPACT_NINF -235
591  static const yysigned_char yypact[] =  static const short yypact[] =
592  {  {
593        10,   -48,    -4,     3,    25,    40,    56,    60,    64,    70,       101,  -235,  -235,    10,    40,    62,    78,    83,    92,   112,
594       -48,    28,   -48,   -48,    16,   -14,   -12,    57,    59,    61,       133,   138,   140,   141,  -235,    44,  -235,   134,  -235,   127,
595        62,    65,   -48,    10,    71,   -48,    73,   -48,   -48,    76,        45,   -24,   -20,   -14,    71,   130,   -21,   -22,    -9,   135,
596       -48,    79,    80,   -48,    81,    82,    83,    84,    85,   -48,      -235,   101,   150,  -235,  -235,  -235,  -235,   146,  -235,   152,
597        10,    20,    72,     0,    89,    88,    26,    90,     0,    88,      -235,  -235,  -235,   154,   155,   156,   157,  -235,   158,   159,
598       -48,    91,    92,    93,    94,    95,   -48,   -48,   -48,    96,       162,   163,   164,  -235,   165,  -235,  -235,   166,   167,  -235,
599        27,   100,   -48,    98,   100,   -48,   -48,    99,   101,   102,       168,   169,  -235,  -235,  -235,  -235,   170,   171,  -235,   172,
600       103,   104,   105,   -48,   -48,   -48,   -48,    27,   -48,    88,       173,   174,   175,   176,   177,  -235,  -235,  -235,  -235,  -235,
601        30,    88,    88,    89,    58,   -48,   100,   -48,    88,    88,      -235,  -235,  -235,  -235,  -235,  -235,  -235,  -235,  -235,  -235,
602        88,    88,    88,    88,    88,   -48,   -48,   -48,   106,   -48,       178,  -235,   101,  -235,    24,   160,   161,   179,   180,   181,
603       -48,   -48,   107,   108,    27,   -48,   109,   110,   111,   112,       182,   183,   185,   187,   189,   184,   184,   188,   190,     9,
604       113,   114,    88,    88,   116,    31,     0,   117,    87,    69,       184,   191,    90,   192,   193,   194,   195,   191,  -235,   196,
605       -48,   -48,   -48,   -48,   -48,   -48,   -48,   -48,    27,   -48,       197,   199,   213,   215,   216,   217,   218,   219,   220,   221,
606       -48,   -48,   -48,   -48,   -48,   -48       222,   223,   224,    28,   146,  -235,  -235,  -235,   225,  -235,
607         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       -48,   -48,   -11,   -48,   -48,   -48,   -48,   -48,   -48,   -48,      -235,  -235,   -25,  -235,  -235,  -235,  -235,  -235,  -235,  -235,
628       -48,   -48,   -48,   -41,   -48,   -48,   -48,   -48,   -48,    13,      -235,  -235,  -235,  -127,  -235,  -235,  -235,  -235,  -235,  -235,
629       -48,   -48,   -47,   -44      -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 -43  #define YYTABLE_NINF -6
638  static const short yytable[] =  static const short yytable[] =
639  {  {
640        64,    77,    14,    56,    26,    57,    27,    28,    78,    15,        37,   158,   265,   266,    70,    93,    91,    76,    77,    78,
641        -5,     1,    39,    29,    31,    32,    86,    -5,    -5,     2,        79,    80,    33,   226,    57,   137,    71,    19,    60,    72,
642         3,     4,     5,     6,     7,     8,     9,    10,    22,    50,        83,    84,    85,    86,    87,    63,    33,   138,    58,   137,
643        56,    16,    85,    86,    25,    23,    24,   104,    95,    64,        93,    93,    61,    73,    74,   173,    81,   280,   236,    64,
644        99,   100,    51,    52,    53,    54,    17,   105,   106,   107,        93,   285,   286,   187,    30,   191,   192,    20,   237,    88,
645       108,   109,   110,   111,    67,    68,    69,    70,    71,    72,        93,    93,    31,    32,   119,   120,   121,   122,   271,   275,
646        86,    56,    18,   102,    96,    97,    19,   124,   125,   128,       208,   209,   210,   211,   212,   213,   214,   118,    93,    21,
647        20,   120,   121,   133,   134,    34,    21,    35,    40,    41,        39,    93,    40,    41,    42,   222,   276,   246,   247,   248,
648        36,    37,    42,    38,    86,    43,    44,    45,    46,    47,        43,    44,    45,    46,    47,    22,    48,    49,   133,   134,
649        48,    49,    56,    65,    55,    74,   101,    79,    80,    81,        23,    50,   141,   144,    51,    52,    53,    54,    55,    24,
650        82,    83,    84,    87,    88,    89,     0,    90,    91,    92,        93,    -5,     1,   239,   224,    66,    67,   188,   189,    -5,
651        93,    94,   112,   -42,   113,   114,   115,   116,   117,   118,        -5,     2,   251,     3,     4,     5,     6,     7,     8,    25,
652       119,   122,   129,   131         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 short yycheck[] =  static const short yycheck[] =
672  {  {
673        44,    48,     6,     3,    18,     5,    20,    21,    49,     6,        17,   117,   236,   237,    25,     3,    31,    29,    30,    31,
674         0,     1,    23,    27,    26,    27,    60,     7,     8,     9,        32,    33,     3,    11,    38,     6,    37,     7,    38,    40,
675        10,    11,    12,    13,    14,    15,    16,    17,     0,    40,        29,    30,    31,    32,    33,    39,     3,    18,    52,     6,
676         3,     6,     5,    77,    18,     7,     8,    84,    79,    83,         3,     3,    52,    54,    55,     7,    58,   271,    11,    53,
677        81,    82,    22,    23,    24,    25,     6,    88,    89,    90,         3,   275,   276,   159,     0,   161,   162,     7,    11,    58,
678        91,    92,    93,    94,    28,    29,    30,    31,    32,    33,         3,     3,     8,     9,    30,    31,    32,    33,    11,    11,
679       104,     3,     6,     5,    34,    35,     6,    36,    37,   116,       176,   177,   178,   179,   180,   181,   182,    92,     3,     7,
680         6,   112,   113,     4,     5,    18,     6,    18,     7,     6,        25,     3,    27,    28,    29,     7,    11,     4,     5,     6,
681        19,    19,     6,    18,   128,     6,     6,     6,     6,     6,        35,    36,    37,    38,    39,     7,    41,    42,   105,   106,
682         6,     6,     3,     5,    22,     5,    83,     6,     6,     6,         7,    46,   109,   110,    49,    50,    51,    52,    53,     7,
683         6,     6,     6,     3,     6,     6,    -1,     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         6,     5,     5,    36        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,    39,    40,    41,     6,     6,     6,     6,     6,     6,        20,    21,    22,    23,    24,    60,    61,    62,    63,     7,
710         6,     6,     0,     7,     8,    18,    18,    20,    21,    27,         7,     7,     7,     7,     7,     7,     7,     7,     7,     7,
711        42,    26,    27,    43,    18,    18,    19,    19,    18,    40,         0,     8,     9,     3,     5,     7,    10,    89,    25,    25,
712         7,     6,     6,     6,     6,     6,     6,     6,     6,     6,        27,    28,    29,    35,    36,    37,    38,    39,    41,    42,
713        40,    22,    23,    24,    25,    22,     3,     5,    46,    59,        46,    49,    50,    51,    52,    53,    66,    38,    52,    68,
714        60,    61,    47,    57,    61,     5,    51,    28,    29,    30,        38,    52,    69,    39,    53,    74,    34,    35,    70,    25,
715        31,    32,    33,    44,     5,    53,    56,    60,    51,     6,        25,    37,    40,    54,    55,    67,    29,    30,    31,    32,
716         6,     6,     6,     6,     6,     5,    61,     3,     6,     6,        33,    58,    64,    29,    30,    31,    32,    33,    58,    65,
717         6,     6,     6,     6,     6,    51,    34,    35,    45,    51,        25,    61,     8,     3,     7,     7,     7,     7,     7,     7,
718        51,    57,     5,    52,    60,    51,    51,    51,    51,    51,         7,     7,     7,     7,     7,     7,     7,     7,     7,     7,
719        51,    51,     6,     6,     6,     6,     6,     6,     6,     6,         7,     7,     7,     7,     7,     7,     7,     7,    61,    30,
720        51,    51,     5,    54,    36,    37,    48,    58,    60,     5,        31,    32,    33,    30,    30,    30,    30,    30,    30,    30,
721        55,    36,    49,     4,     5,    50        30,    30,    30,    89,    89,     5,     5,     6,    18,    75,
722          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 1166  yyreduce: Line 1343  yyreduce:
1343    YY_REDUCE_PRINT (yyn);    YY_REDUCE_PRINT (yyn);
1344    switch (yyn)    switch (yyn)
1345      {      {
1346          case 6:          case 7:
1347  #line 82 "lscp.y"  #line 85 "lscp.y"
1348      { LSCPSERVER->AnswerClient(yyvsp[0].String); }      { LSCPSERVER->AnswerClient(yyvsp[0].String); }
1349      break;      break;
1350    
   case 7:  
 #line 83 "lscp.y"  
     { LSCPSERVER->AnswerClient("Err:0:Unknown command.\r\n"); RESTART; return LSCP_SYNTAX_ERROR; }  
     break;  
   
1351    case 8:    case 8:
1352  #line 86 "lscp.y"  #line 86 "lscp.y"
1353      { yyval.String = LSCPSERVER->AddChannel();                  }      { LSCPSERVER->AnswerClient("Err:0:Unknown command.\r\n"); RESTART; return LSCP_SYNTAX_ERROR; }
     break;  
   
   case 9:  
 #line 87 "lscp.y"  
     { yyval.String = yyvsp[0].String;                                        }  
     break;  
   
   case 10:  
 #line 88 "lscp.y"  
     { yyval.String = yyvsp[0].String;                                        }  
     break;  
   
   case 11:  
 #line 89 "lscp.y"  
     { yyval.String = LSCPSERVER->RemoveChannel(yyvsp[0].Number);             }  
     break;  
   
   case 12:  
 #line 90 "lscp.y"  
     { yyval.String = yyvsp[0].String;                                        }  
     break;  
   
   case 13:  
 #line 91 "lscp.y"  
     { yyval.String = LSCPSERVER->SubscribeNotification(yyvsp[0].Number);     }  
1354      break;      break;
1355    
1356    case 14:    case 14:
1357  #line 92 "lscp.y"  #line 96 "lscp.y"
1358      { yyval.String = LSCPSERVER->UnsubscribeNotification(yyvsp[0].String);   }      { yyval.String = LSCPSERVER->AddChannel();                  }
1359      break;      break;
1360    
1361    case 15:    case 15:
1362  #line 93 "lscp.y"  #line 97 "lscp.y"
1363      { yyval.String = LSCPSERVER->ResetChannel(yyvsp[0].Number);              }      { yyval.String = yyvsp[0].String;                                        }
1364      break;      break;
1365    
1366    case 16:    case 16:
1367  #line 94 "lscp.y"  #line 98 "lscp.y"
1368      { LSCPSERVER->AnswerClient("Bye!\r\n"); return 0; }      { yyval.String = yyvsp[0].String;                                        }
1369      break;      break;
1370    
1371    case 17:    case 17:
1372  #line 97 "lscp.y"  #line 99 "lscp.y"
1373      { yyval.String = LSCPSERVER->GetAvailableEngines(); }      { yyval.String = yyvsp[0].String;                                        }
1374      break;      break;
1375    
1376    case 18:    case 18:
1377  #line 98 "lscp.y"  #line 100 "lscp.y"
1378      { yyval.String = LSCPSERVER->GetChannels();         }      { yyval.String = yyvsp[0].String;                                        }
1379      break;      break;
1380    
1381    case 19:    case 19:
1382  #line 99 "lscp.y"  #line 101 "lscp.y"
1383      { yyval.String = LSCPSERVER->GetChannelInfo(yyvsp[0].Number);    }      { yyval.String = yyvsp[0].String;                                        }
1384      break;      break;
1385    
1386    case 20:    case 20:
1387  #line 100 "lscp.y"  #line 102 "lscp.y"
1388      { yyval.String = LSCPSERVER->GetBufferFill(yyvsp[-2].FillResponse, yyvsp[0].Number); }      { yyval.String = LSCPSERVER->RemoveChannel(yyvsp[0].Number);             }
1389      break;      break;
1390    
1391    case 21:    case 21:
1392  #line 101 "lscp.y"  #line 103 "lscp.y"
1393      { yyval.String = LSCPSERVER->GetStreamCount(yyvsp[0].Number);    }      { yyval.String = yyvsp[0].String;                                        }
1394      break;      break;
1395    
1396    case 22:    case 22:
1397  #line 102 "lscp.y"  #line 104 "lscp.y"
1398      { yyval.String = LSCPSERVER->GetVoiceCount(yyvsp[0].Number);     }      { yyval.String = yyvsp[0].String;                                        }
1399      break;      break;
1400    
1401    case 23:    case 23:
1402  #line 103 "lscp.y"  #line 105 "lscp.y"
1403      { yyval.String = LSCPSERVER->GetEngineInfo(yyvsp[0].String);     }      { yyval.String = yyvsp[0].String;                                        }
1404      break;      break;
1405    
1406    case 24:    case 24:
1407  #line 106 "lscp.y"  #line 106 "lscp.y"
1408      { yyval.String = yyvsp[0].String; }      { yyval.String = LSCPSERVER->ResetChannel(yyvsp[0].Number);              }
1409      break;      break;
1410    
1411    case 25:    case 25:
1412  #line 107 "lscp.y"  #line 107 "lscp.y"
1413      { yyval.String = yyvsp[0].String; }      { LSCPSERVER->AnswerClient("Bye!\r\n"); return 0; }
1414      break;      break;
1415    
1416    case 26:    case 26:
1417  #line 110 "lscp.y"  #line 110 "lscp.y"
1418      { yyval.String = LSCPSERVER->SetAudioOutputChannel(yyvsp[0].Number, yyvsp[-2].Number); }      { yyval.String = LSCPSERVER->SubscribeNotification(event_channels); }
1419      break;      break;
1420    
1421    case 27:    case 27:
1422  #line 111 "lscp.y"  #line 111 "lscp.y"
1423      { yyval.String = LSCPSERVER->SetAudioOutputType(yyvsp[0].AudioOutput, yyvsp[-2].Number);    }      { yyval.String = LSCPSERVER->SubscribeNotification(event_voice_count); }
1424      break;      break;
1425    
1426    case 28:    case 28:
1427  #line 112 "lscp.y"  #line 112 "lscp.y"
1428      { yyval.String = LSCPSERVER->SetMIDIInputPort(yyvsp[0].String, yyvsp[-2].Number);      }      { yyval.String = LSCPSERVER->SubscribeNotification(event_stream_count); }
1429      break;      break;
1430    
1431    case 29:    case 29:
1432  #line 113 "lscp.y"  #line 113 "lscp.y"
1433      { yyval.String = LSCPSERVER->SetMIDIInputChannel(yyvsp[0].Number, yyvsp[-2].Number);   }      { yyval.String = LSCPSERVER->SubscribeNotification(event_channel_buffer_fill); }
1434      break;      break;
1435    
1436    case 30:    case 30:
1437  #line 114 "lscp.y"  #line 114 "lscp.y"
1438      { yyval.String = "Err:0:Not implemented yet\r\n";           }      { yyval.String = LSCPSERVER->SubscribeNotification(event_channel_info); }
1439      break;      break;
1440    
1441    case 31:    case 31:
1442  #line 115 "lscp.y"  #line 115 "lscp.y"
1443      { yyval.String = LSCPSERVER->SetVolume(yyvsp[0].Dotnum, yyvsp[-2].Number);             }      { yyval.String = LSCPSERVER->SubscribeNotification(event_misc); }
1444      break;      break;
1445    
1446    case 32:    case 32:
1447  #line 118 "lscp.y"  #line 118 "lscp.y"
1448      { yyval.FillResponse = fill_response_bytes;      }      { yyval.String = LSCPSERVER->UnsubscribeNotification(event_channels); }
1449      break;      break;
1450    
1451    case 33:    case 33:
1452  #line 119 "lscp.y"  #line 119 "lscp.y"
1453      { yyval.FillResponse = fill_response_percentage; }      { yyval.String = LSCPSERVER->UnsubscribeNotification(event_voice_count); }
1454      break;      break;
1455    
1456    case 34:    case 34:
1457  #line 122 "lscp.y"  #line 120 "lscp.y"
1458      { yyval.String = LSCPSERVER->LoadInstrument(yyvsp[-4].String, yyvsp[-2].Number, yyvsp[0].Number); }      { yyval.String = LSCPSERVER->UnsubscribeNotification(event_stream_count); }
1459      break;      break;
1460    
1461    case 35:    case 35:
1462  #line 125 "lscp.y"  #line 121 "lscp.y"
1463      { yyval.String = LSCPSERVER->LoadEngine(yyvsp[-2].String, yyvsp[0].Number); }      { yyval.String = LSCPSERVER->UnsubscribeNotification(event_channel_buffer_fill); }
1464      break;      break;
1465    
1466    case 36:    case 36:
1467  #line 128 "lscp.y"  #line 122 "lscp.y"
1468      { yyval.AudioOutput = audio_output_type_alsa; }      { yyval.String = LSCPSERVER->UnsubscribeNotification(event_channel_info); }
1469      break;      break;
1470    
1471    case 37:    case 37:
1472  #line 129 "lscp.y"  #line 123 "lscp.y"
1473      { yyval.AudioOutput = audio_output_type_jack; }      { yyval.String = LSCPSERVER->UnsubscribeNotification(event_misc); }
1474      break;      break;
1475    
1476    case 38:    case 38:
1477  #line 132 "lscp.y"  #line 126 "lscp.y"
1478      { yyval.Number = ALSA; }      { yyval.String = LSCPSERVER->GetAvailableEngines();                          }
1479        break;
1480    
1481      case 39:
1482    #line 127 "lscp.y"
1483        { yyval.String = LSCPSERVER->GetAvailableMidiInputDrivers();               }
1484      break;      break;
1485    
1486    case 40:    case 40:
1487    #line 128 "lscp.y"
1488        { yyval.String = LSCPSERVER->GetMidiInputDriverInfo(yyvsp[0].String);                   }
1489        break;
1490    
1491      case 41:
1492    #line 129 "lscp.y"
1493        { yyval.String = LSCPSERVER->GetMidiInputDriverParameterInfo(yyvsp[-2].String, yyvsp[0].String);      }
1494        break;
1495    
1496      case 42:
1497    #line 130 "lscp.y"
1498        { yyval.String = LSCPSERVER->GetMidiInputDriverParameterInfo(yyvsp[-4].String, yyvsp[-2].String, yyvsp[0].KeyValList);  }
1499        break;
1500    
1501      case 43:
1502    #line 131 "lscp.y"
1503        { yyval.String = LSCPSERVER->GetAvailableAudioOutputDrivers();               }
1504        break;
1505    
1506      case 44:
1507    #line 132 "lscp.y"
1508        { 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;
1515    
1516      case 46:
1517    #line 134 "lscp.y"
1518        { 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"  #line 136 "lscp.y"
1528      { yyval.Dotnum = yyvsp[0].Number; }      { 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;      break;
1535    
1536    case 50:    case 50:
1537  #line 164 "lscp.y"  #line 138 "lscp.y"
1538      { yyval.String = yyvsp[-2].String + ' ' + yyvsp[0].String; }      { yyval.String = LSCPSERVER->GetMidiInputDeviceInfo(yyvsp[0].Number);                   }
1539      break;      break;
1540    
1541    case 51:    case 51:
1542  #line 167 "lscp.y"  #line 139 "lscp.y"
1543      { yyval.String = yyvsp[0].String;                                             }      { yyval.String = LSCPSERVER->GetMidiInputPortInfo(yyvsp[-2].Number, yyvsp[0].Number);                   }
1544      break;      break;
1545    
1546    case 52:    case 52:
1547  #line 168 "lscp.y"  #line 140 "lscp.y"
1548      { std::stringstream ss; ss << yyvsp[0].Number; yyval.String = ss.str();       }      { yyval.String = LSCPSERVER->GetAudioOutputChannelInfo(yyvsp[-2].Number, yyvsp[0].Number);              }
1549      break;      break;
1550    
1551    case 53:    case 53:
1552  #line 169 "lscp.y"  #line 141 "lscp.y"
1553      { yyval.String = yyvsp[-1].String + yyvsp[0].String;                                        }      { yyval.String = LSCPSERVER->GetAudioOutputChannelParameterInfo(yyvsp[-4].Number, yyvsp[-2].Number, yyvsp[0].String); }
1554      break;      break;
1555    
1556    case 54:    case 54:
1557  #line 170 "lscp.y"  #line 142 "lscp.y"
1558      { std::stringstream ss; ss << yyvsp[-1].String << yyvsp[0].Number; yyval.String = ss.str(); }      { yyval.String = LSCPSERVER->GetChannels();                                  }
1559      break;      break;
1560    
1561    case 55:    case 55:
1562  #line 173 "lscp.y"  #line 143 "lscp.y"
1563      { std::string s; s = yyvsp[0].Char; yyval.String = s; }      { yyval.String = LSCPSERVER->GetChannelInfo(yyvsp[0].Number);                             }
1564      break;      break;
1565    
1566    case 56:    case 56:
1567    #line 144 "lscp.y"
1568        { yyval.String = LSCPSERVER->GetBufferFill(yyvsp[-2].FillResponse, yyvsp[0].Number);                          }
1569        break;
1570    
1571      case 57:
1572    #line 145 "lscp.y"
1573        { yyval.String = LSCPSERVER->GetStreamCount(yyvsp[0].Number);                             }
1574        break;
1575    
1576      case 58:
1577    #line 146 "lscp.y"
1578        { yyval.String = LSCPSERVER->GetVoiceCount(yyvsp[0].Number);                              }
1579        break;
1580    
1581      case 59:
1582    #line 147 "lscp.y"
1583        { yyval.String = LSCPSERVER->GetEngineInfo(yyvsp[0].String);                              }
1584        break;
1585    
1586      case 60:
1587    #line 150 "lscp.y"
1588        { yyval.String = LSCPSERVER->SetAudioOutputDeviceParameter(yyvsp[-4].Number, yyvsp[-2].String, yyvsp[0].String);      }
1589        break;
1590    
1591      case 61:
1592    #line 151 "lscp.y"
1593        { yyval.String = LSCPSERVER->SetAudioOutputChannelParameter(yyvsp[-6].Number, yyvsp[-4].Number, yyvsp[-2].String, yyvsp[0].String); }
1594        break;
1595    
1596      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"  #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"
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 1375  yyreduce: Line 1752  yyreduce:
1752      }      }
1753    
1754  /* Line 999 of yacc.c.  */  /* Line 999 of yacc.c.  */
1755  #line 1379 "y.tab.c"  #line 1755 "y.tab.c"
1756    
1757    yyvsp -= yylen;    yyvsp -= yylen;
1758    yyssp -= yylen;    yyssp -= yylen;
# Line 1569  yyreturn: Line 1946  yyreturn:
1946  }  }
1947    
1948    
1949  #line 177 "lscp.y"  #line 78 "lscp.y"
1950    
1951    
1952  /**  /**

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

  ViewVC Help
Powered by ViewVC