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

Legend:
Removed from v.53  
changed lines
  Added in v.160

  ViewVC Help
Powered by ViewVC