/[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 137 by senkov, Sun Jun 20 16:01:50 2004 UTC revision 138 by senkov, Sun Jun 20 23:18:24 2004 UTC
# Line 44  extern void yyrestart(FILE* input_file, Line 44  extern void yyrestart(FILE* input_file,
44  // we provide our own version of yyerror() so we don't have to link against the yacc library  // we provide our own version of yyerror() so we don't have to link against the yacc library
45  void yyerror(const char* s);  void yyerror(const char* s);
46    
47    bool background;
48  %}  %}
49    
50  // reentrant parser  // reentrant parser
# Line 97  command               :  ADD SP CHANNEL Line 98  command               :  ADD SP CHANNEL
98                        |  CREATE SP create_instruction               { $$ = $3;                                        }                        |  CREATE SP create_instruction               { $$ = $3;                                        }
99                        |  DESTROY SP destroy_instruction             { $$ = $3;                                        }                        |  DESTROY SP destroy_instruction             { $$ = $3;                                        }
100                        |  LIST SP list_instruction                   { $$ = $3;                                        }                        |  LIST SP list_instruction                   { $$ = $3;                                        }
101                        |  LOAD SP load_instruction                   { $$ = $3;                                        }                        |  LOAD SP load_instruction                   { $$ = $3; background = false;                    }
102                        |  LOAD_BACKGROUND SP load_instruction        { $$ = $3;                                        }                        |  LOAD_BACKGROUND SP load_instruction        { $$ = $3; background = true;                     }
103                        |  REMOVE SP CHANNEL SP sampler_channel       { $$ = LSCPSERVER->RemoveChannel($5);             }                        |  REMOVE SP CHANNEL SP sampler_channel       { $$ = LSCPSERVER->RemoveChannel($5);             }
104                        |  SET SP set_instruction                     { $$ = $3;                                        }                        |  SET SP set_instruction                     { $$ = $3;                                        }
105                        |  SUBSCRIBE SP subscribe_event               { $$ = $3;                                        }                        |  SUBSCRIBE SP subscribe_event               { $$ = $3;                                        }
# Line 146  set_instruction       :  AUDIO_OUTPUT_DE Line 147  set_instruction       :  AUDIO_OUTPUT_DE
147                        ;                        ;
148    
149  create_instruction    :  AUDIO_OUTPUT_DEVICE SP string SP key_val_list { $$ = LSCPSERVER->CreateAudioOutputDevice($3,$5); }  create_instruction    :  AUDIO_OUTPUT_DEVICE SP string SP key_val_list { $$ = LSCPSERVER->CreateAudioOutputDevice($3,$5); }
150                          |  AUDIO_OUTPUT_DEVICE SP string                 { $$ = LSCPSERVER->CreateAudioOutputDevice($3); }
151                        ;                        ;
152    
153  destroy_instruction   :  AUDIO_OUTPUT_DEVICE SP NUMBER  { $$ = LSCPSERVER->DestroyAudioOutputDevice($3); }  destroy_instruction   :  AUDIO_OUTPUT_DEVICE SP NUMBER  { $$ = LSCPSERVER->DestroyAudioOutputDevice($3); }
# Line 174  buffer_size_type      :  BYTES       { $ Line 176  buffer_size_type      :  BYTES       { $
176  list_instruction      :  AUDIO_OUTPUT_DEVICES  { $$ = LSCPSERVER->GetAudioOutputDevices(); }  list_instruction      :  AUDIO_OUTPUT_DEVICES  { $$ = LSCPSERVER->GetAudioOutputDevices(); }
177                        ;                        ;
178    
179  load_instr_args       :  filename SP instrument_index SP sampler_channel  { $$ = LSCPSERVER->LoadInstrument($1, $3, $5); }  load_instr_args       :  filename SP instrument_index SP sampler_channel  { $$ = LSCPSERVER->LoadInstrument($1, $3, $5, background); }
180                        ;                        ;
181    
182  load_engine_args      :  engine_name SP sampler_channel  { $$ = LSCPSERVER->LoadEngine($1, $3); }  load_engine_args      :  engine_name SP sampler_channel  { $$ = LSCPSERVER->LoadEngine($1, $3); }

Legend:
Removed from v.137  
changed lines
  Added in v.138

  ViewVC Help
Powered by ViewVC