--- linuxsampler/trunk/src/network/lscp.y 2004/05/06 20:06:20 64 +++ linuxsampler/trunk/src/network/lscp.y 2004/06/05 20:55:50 111 @@ -52,7 +52,7 @@ %token CHAR %token DOTNUM %token NUMBER -%token SP LF CR +%token SP LF CR HASH %token ADD GET LOAD REMOVE SET SUBSCRIBE UNSUBSCRIBE RESET QUIT %token CHANNEL NOTIFICATION %token AVAILABLE_ENGINES CHANNELS INFO BUFFER_FILL STREAM_COUNT VOICE_COUNT @@ -80,10 +80,18 @@ ; line : /* epsilon (empty line ignored) */ + | comment | command { LSCPSERVER->AnswerClient($1); } | error { LSCPSERVER->AnswerClient("Err:0:Unknown command.\r\n"); RESTART; return LSCP_SYNTAX_ERROR; } ; +comment : HASH + | comment HASH + | comment SP + | comment NUMBER + | comment string + ; + command : ADD SP CHANNEL { $$ = LSCPSERVER->AddChannel(); } | GET SP get_instruction { $$ = $3; } | LOAD SP load_instruction { $$ = $3; }