/[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 556 by schoenebeck, Sat May 21 01:10:12 2005 UTC revision 705 by schoenebeck, Wed Jul 20 21:43:23 2005 UTC
# Line 79  int yylex(YYSTYPE* yylval) { Line 79  int yylex(YYSTYPE* yylval) {
79    
80  //TODO: return more meaningful error messages  //TODO: return more meaningful error messages
81    
82    /*
83      The LSCP specification input file (Documentation/lscp.xml) is automatically
84      updated with this file using the scripts/update_grammar.pl script. Do not
85      modify or delete the GRAMMAR_BNF_BEGIN and GRAMMAR_BNF_END lines !
86    */
87    
88    // GRAMMAR_BNF_BEGIN - do NOT delete or modify this line !!!
89    
90  input                 : line LF  input                 : line LF
91                        | line CR LF                        | line CR LF
92                        ;                        ;
# Line 151  get_instruction       :  AVAILABLE_ENGIN Line 159  get_instruction       :  AVAILABLE_ENGIN
159                        |  CHANNEL SP STREAM_COUNT SP sampler_channel                                 { $$ = LSCPSERVER->GetStreamCount($5);                             }                        |  CHANNEL SP STREAM_COUNT SP sampler_channel                                 { $$ = LSCPSERVER->GetStreamCount($5);                             }
160                        |  CHANNEL SP VOICE_COUNT SP sampler_channel                                  { $$ = LSCPSERVER->GetVoiceCount($5);                              }                        |  CHANNEL SP VOICE_COUNT SP sampler_channel                                  { $$ = LSCPSERVER->GetVoiceCount($5);                              }
161                        |  ENGINE SP INFO SP engine_name                                              { $$ = LSCPSERVER->GetEngineInfo($5);                              }                        |  ENGINE SP INFO SP engine_name                                              { $$ = LSCPSERVER->GetEngineInfo($5);                              }
162                          |  SERVER SP INFO                                                             { $$ = LSCPSERVER->GetServerInfo();                                }
163                        ;                        ;
164    
165  set_instruction       :  AUDIO_OUTPUT_DEVICE_PARAMETER SP number SP string '=' param_val_list             { $$ = LSCPSERVER->SetAudioOutputDeviceParameter($3, $5, $7);      }  set_instruction       :  AUDIO_OUTPUT_DEVICE_PARAMETER SP number SP string '=' param_val_list             { $$ = LSCPSERVER->SetAudioOutputDeviceParameter($3, $5, $7);      }
# Line 184  set_chan_instruction  :  AUDIO_OUTPUT_DE Line 193  set_chan_instruction  :  AUDIO_OUTPUT_DE
193                        |  MIDI_INPUT_CHANNEL SP sampler_channel SP midi_input_channel_index                                   { $$ = LSCPSERVER->SetMIDIInputChannel($5, $3);       }                        |  MIDI_INPUT_CHANNEL SP sampler_channel SP midi_input_channel_index                                   { $$ = LSCPSERVER->SetMIDIInputChannel($5, $3);       }
194                        |  MIDI_INPUT_TYPE SP sampler_channel SP midi_input_type_name                                          { $$ = LSCPSERVER->SetMIDIInputType($5, $3);          }                        |  MIDI_INPUT_TYPE SP sampler_channel SP midi_input_type_name                                          { $$ = LSCPSERVER->SetMIDIInputType($5, $3);          }
195                        |  VOLUME SP sampler_channel SP volume_value                                                           { $$ = LSCPSERVER->SetVolume($5, $3);                 }                        |  VOLUME SP sampler_channel SP volume_value                                                           { $$ = LSCPSERVER->SetVolume($5, $3);                 }
196                          |  MUTE SP sampler_channel SP boolean                                                                  { $$ = LSCPSERVER->SetChannelMute($5, $3);            }
197                          |  SOLO SP sampler_channel SP boolean                                                                  { $$ = LSCPSERVER->SetChannelSolo($5, $3);            }
198                        ;                        ;
199    
200  key_val_list          :  string '=' param_val_list                  { $$[$1] = $3;          }  key_val_list          :  string '=' param_val_list                  { $$[$1] = $3;          }
# Line 255  param_val                 :  string Line 266  param_val                 :  string
266                            |  dotnum            { std::stringstream ss; ss << "\'" << $1 << "\'"; $$ = ss.str(); }                            |  dotnum            { std::stringstream ss; ss << "\'" << $1 << "\'"; $$ = ss.str(); }
267                            ;                            ;
268    
269    // GRAMMAR_BNF_END - do NOT delete or modify this line !!!
270    
271    
272  // atomic variable symbol rules  // atomic variable symbol rules
273    
# Line 505  MIDI_INPUT_TYPE       :  'M''I''D''I''_' Line 518  MIDI_INPUT_TYPE       :  'M''I''D''I''_'
518  MIDI_INPUT            :  'M''I''D''I''_''I''N''P''U''T'  MIDI_INPUT            :  'M''I''D''I''_''I''N''P''U''T'
519                        ;                        ;
520    
521    SERVER                :  'S''E''R''V''E''R'
522                          ;
523    
524  VOLUME                :  'V''O''L''U''M''E'  VOLUME                :  'V''O''L''U''M''E'
525                        ;                        ;
526    
527    MUTE                  :  'M''U''T''E'
528                          ;
529    
530    SOLO                  :  'S''O''L''O'
531                          ;
532    
533  BYTES                 :  'B''Y''T''E''S'  BYTES                 :  'B''Y''T''E''S'
534                        ;                        ;
535    

Legend:
Removed from v.556  
changed lines
  Added in v.705

  ViewVC Help
Powered by ViewVC