/[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 138 by senkov, Sun Jun 20 23:18:24 2004 UTC revision 141 by senkov, Mon Jun 21 01:21:33 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    
 bool background;  
47  %}  %}
48    
49  // reentrant parser  // reentrant parser
# Line 55  bool background; Line 54  bool background;
54  %token <Number> NUMBER  %token <Number> NUMBER
55  %token <String> STRINGVAL  %token <String> STRINGVAL
56  %token SP LF CR HASH EQ  %token SP LF CR HASH EQ
57  %token ADD GET CREATE DESTROY LIST LOAD LOAD_BACKGROUND REMOVE SET SUBSCRIBE UNSUBSCRIBE RESET QUIT  %token ADD GET CREATE DESTROY LIST LOAD NON_MODAL REMOVE SET SUBSCRIBE UNSUBSCRIBE RESET QUIT
58  %token CHANNEL NOTIFICATION  %token CHANNEL NOTIFICATION
59  %token AVAILABLE_ENGINES AVAILABLE_AUDIO_OUTPUT_DRIVERS CHANNELS INFO BUFFER_FILL STREAM_COUNT VOICE_COUNT  %token AVAILABLE_ENGINES AVAILABLE_AUDIO_OUTPUT_DRIVERS CHANNELS INFO BUFFER_FILL STREAM_COUNT VOICE_COUNT
60  %token INSTRUMENT ENGINE  %token INSTRUMENT ENGINE
# Line 98  command               :  ADD SP CHANNEL Line 97  command               :  ADD SP CHANNEL
97                        |  CREATE SP create_instruction               { $$ = $3;                                        }                        |  CREATE SP create_instruction               { $$ = $3;                                        }
98                        |  DESTROY SP destroy_instruction             { $$ = $3;                                        }                        |  DESTROY SP destroy_instruction             { $$ = $3;                                        }
99                        |  LIST SP list_instruction                   { $$ = $3;                                        }                        |  LIST SP list_instruction                   { $$ = $3;                                        }
100                        |  LOAD SP load_instruction                   { $$ = $3; background = false;                    }                        |  LOAD SP load_instruction                   { $$ = $3;                                        }
                       |  LOAD_BACKGROUND SP load_instruction        { $$ = $3; background = true;                     }  
101                        |  REMOVE SP CHANNEL SP sampler_channel       { $$ = LSCPSERVER->RemoveChannel($5);             }                        |  REMOVE SP CHANNEL SP sampler_channel       { $$ = LSCPSERVER->RemoveChannel($5);             }
102                        |  SET SP set_instruction                     { $$ = $3;                                        }                        |  SET SP set_instruction                     { $$ = $3;                                        }
103                        |  SUBSCRIBE SP subscribe_event               { $$ = $3;                                        }                        |  SUBSCRIBE SP subscribe_event               { $$ = $3;                                        }
# Line 176  buffer_size_type      :  BYTES       { $ Line 174  buffer_size_type      :  BYTES       { $
174  list_instruction      :  AUDIO_OUTPUT_DEVICES  { $$ = LSCPSERVER->GetAudioOutputDevices(); }  list_instruction      :  AUDIO_OUTPUT_DEVICES  { $$ = LSCPSERVER->GetAudioOutputDevices(); }
175                        ;                        ;
176    
177  load_instr_args       :  filename SP instrument_index SP sampler_channel  { $$ = LSCPSERVER->LoadInstrument($1, $3, $5, background); }  load_instr_args       :  filename SP instrument_index SP sampler_channel  { $$ = LSCPSERVER->LoadInstrument($1, $3, $5); }
178                          |  NON_MODAL SP filename SP instrument_index SP sampler_channel  { $$ = LSCPSERVER->LoadInstrument($3, $5, $7, true); }
179                        ;                        ;
180    
181  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.138  
changed lines
  Added in v.141

  ViewVC Help
Powered by ViewVC