/[svn]/linuxsampler/trunk/src/network/lscp.y
ViewVC logotype

Diff of /linuxsampler/trunk/src/network/lscp.y

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

revision 219 by schoenebeck, Tue Aug 17 20:35:04 2004 UTC revision 221 by schoenebeck, Fri Aug 20 17:25:19 2004 UTC
# Line 68  int yylex(YYSTYPE* yylval) { Line 68  int yylex(YYSTYPE* yylval) {
68  %type <Char> char digit  %type <Char> char digit
69  %type <Dotnum> dotnum volume_value boolean  %type <Dotnum> dotnum volume_value boolean
70  %type <Number> number sampler_channel instrument_index audio_channel_index device_index midi_input_channel_index midi_input_port_index  %type <Number> number sampler_channel instrument_index audio_channel_index device_index midi_input_channel_index midi_input_port_index
71  %type <String> string stringval digits param_val filename engine_name command create_instruction destroy_instruction get_instruction list_instruction load_instruction set_chan_instruction load_instr_args load_engine_args audio_output_type_name midi_input_type_name set_instruction subscribe_event unsubscribe_event  %type <String> string text stringval digits param_val filename engine_name command create_instruction destroy_instruction get_instruction list_instruction load_instruction set_chan_instruction load_instr_args load_engine_args audio_output_type_name midi_input_type_name set_instruction subscribe_event unsubscribe_event
72  %type <FillResponse> buffer_size_type  %type <FillResponse> buffer_size_type
73  %type <KeyValList> key_val_list  %type <KeyValList> key_val_list
74    
# Line 340  char                  :  'A' { $$ = 'A'; Line 340  char                  :  'A' { $$ = 'A';
340                        |  '\376' { $$ = '\376'; } | '\377' { $$ = '\377'; }                        |  '\376' { $$ = '\376'; } | '\377' { $$ = '\377'; }
341                        ;                        ;
342    
343  stringval             :  '\'' string '\''  { $$ = '\'' + $2 + '\''; }  text                  :  SP           { $$ = " ";      }
344                        |  '\"' string '\"'  { $$ = '\"' + $2 + '\"'; }                        |  string
345                          |  text SP      { $$ = $1 + " "; }
346                          |  text string  { $$ = $1 + $2;  }
347                          ;
348    
349    stringval             :  '\'' text '\''  { $$ = '\'' + $2 + '\''; }
350                          |  '\"' text '\"'  { $$ = '\"' + $2 + '\"'; }
351                        ;                        ;
352    
353    

Legend:
Removed from v.219  
changed lines
  Added in v.221

  ViewVC Help
Powered by ViewVC