--- linuxsampler/trunk/src/network/lscp.y 2005/05/21 01:10:12 556 +++ linuxsampler/trunk/src/network/lscp.y 2005/07/20 21:43:23 705 @@ -79,6 +79,14 @@ //TODO: return more meaningful error messages +/* + The LSCP specification input file (Documentation/lscp.xml) is automatically + updated with this file using the scripts/update_grammar.pl script. Do not + modify or delete the GRAMMAR_BNF_BEGIN and GRAMMAR_BNF_END lines ! +*/ + +// GRAMMAR_BNF_BEGIN - do NOT delete or modify this line !!! + input : line LF | line CR LF ; @@ -151,6 +159,7 @@ | CHANNEL SP STREAM_COUNT SP sampler_channel { $$ = LSCPSERVER->GetStreamCount($5); } | CHANNEL SP VOICE_COUNT SP sampler_channel { $$ = LSCPSERVER->GetVoiceCount($5); } | ENGINE SP INFO SP engine_name { $$ = LSCPSERVER->GetEngineInfo($5); } + | SERVER SP INFO { $$ = LSCPSERVER->GetServerInfo(); } ; set_instruction : AUDIO_OUTPUT_DEVICE_PARAMETER SP number SP string '=' param_val_list { $$ = LSCPSERVER->SetAudioOutputDeviceParameter($3, $5, $7); } @@ -184,6 +193,8 @@ | MIDI_INPUT_CHANNEL SP sampler_channel SP midi_input_channel_index { $$ = LSCPSERVER->SetMIDIInputChannel($5, $3); } | MIDI_INPUT_TYPE SP sampler_channel SP midi_input_type_name { $$ = LSCPSERVER->SetMIDIInputType($5, $3); } | VOLUME SP sampler_channel SP volume_value { $$ = LSCPSERVER->SetVolume($5, $3); } + | MUTE SP sampler_channel SP boolean { $$ = LSCPSERVER->SetChannelMute($5, $3); } + | SOLO SP sampler_channel SP boolean { $$ = LSCPSERVER->SetChannelSolo($5, $3); } ; key_val_list : string '=' param_val_list { $$[$1] = $3; } @@ -255,6 +266,8 @@ | dotnum { std::stringstream ss; ss << "\'" << $1 << "\'"; $$ = ss.str(); } ; +// GRAMMAR_BNF_END - do NOT delete or modify this line !!! + // atomic variable symbol rules @@ -505,9 +518,18 @@ MIDI_INPUT : 'M''I''D''I''_''I''N''P''U''T' ; +SERVER : 'S''E''R''V''E''R' + ; + VOLUME : 'V''O''L''U''M''E' ; +MUTE : 'M''U''T''E' + ; + +SOLO : 'S''O''L''O' + ; + BYTES : 'B''Y''T''E''S' ;