seleciii44
Hi, i have simple grammar like :
submission_format :
'submission-format'
OPEN_CURLY
(ANY ) | (( directory| file )+)
CLOSE_CURLY ;
directory:
'directory'
STRING
COLON
EXISTENCE_OBLIGATION
OPEN_CURLY
(ANY ) | ((file )+)
CLOSE_CURLY ;
file :
'file'
STRING
COLON
(
(EXISTENCE_OBLIGATION )|(EXISTENCE_OBLIGATION COMMA FOLDER_RECURSIVE) | (FOLDER_RECURSIVE COMMA EXISTENCE_OBLIGATION)
)
DOT;
the problem is the definition of the sumission format, i get the following error after the tool run :
warning(200): Decision can match input such as "'file' STRING COLON EXISTENCE_OBLIGATION COMMA FOLDER_RECURSIVE DOT" using multiple alternatives: 1, 2
As a result, alternative(s) 2 were disabled for that input
|---> (ANY ) | (( directory| file )+)
error(201): The following alternatives can never be matched: 2
|---> (ANY ) | (( directory| file )+)
thanks in advance..
submission_format :
'submission-format'
OPEN_CURLY
(ANY ) | (( directory| file )+)
CLOSE_CURLY ;
directory:
'directory'
STRING
COLON
EXISTENCE_OBLIGATION
OPEN_CURLY
(ANY ) | ((file )+)
CLOSE_CURLY ;
file :
'file'
STRING
COLON
(
(EXISTENCE_OBLIGATION )|(EXISTENCE_OBLIGATION COMMA FOLDER_RECURSIVE) | (FOLDER_RECURSIVE COMMA EXISTENCE_OBLIGATION)
)
DOT;
the problem is the definition of the sumission format, i get the following error after the tool run :
warning(200): Decision can match input such as "'file' STRING COLON EXISTENCE_OBLIGATION COMMA FOLDER_RECURSIVE DOT" using multiple alternatives: 1, 2
As a result, alternative(s) 2 were disabled for that input
|---> (ANY ) | (( directory| file )+)
error(201): The following alternatives can never be matched: 2
|---> (ANY ) | (( directory| file )+)
thanks in advance..