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 |
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; } |
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); } |
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); } |