Hello,
I'm new to DSL and even to EBNF (I can read it fine and am learning how to write).
I'm getting the following error:
warning(200): ../org.unjaana.geegee/src-gen/org/unjaana/geegee/parser/antlr/internal/InternalGeeGeeDSL.g:524:3: Decision can match input such as "RULE_ID" using multiple alternatives: 1, 2
As a result, alternative(s) 2 were disabled for that input
error(201): ../org.unjaana.geegee/src-gen/org/unjaana/geegee/parser/antlr/internal/InternalGeeGeeDSL.g:524:3: The following alternatives can never be matched: 2
My rule is:
Instr:
'Create' (element=[Node] | element=[Edge])
('min' minCount=INT)?
'max' maxCount=INT
Where Node and Edge are other classes in the same DSL and defined as:
Node:
'node' name=ID;
Edge:
'edge' name=ID
'from' from = [Node]
'to' to = [Node]
'multiplicity' multi = Multiplicity;
What am I doing wrong?
Thanks,
Sheshadri