新しい言語用の新しい Eclipse プラグインを作成するために xText を使用しています。しかし、コード Antlr を生成しようとすると、次の警告が表示されます。
Decision can match input such as "'?'" using multiple alternatives: 1, 2
多くのコードにコメントした後、問題は次のコードスニップにあると確信しています。
...
Expression:
operatorExpr=OperatorExpr (condExpr=CondExpr)?
|exprPrimary=ExprPrimary (condExpr=CondExpr)?
;
CondExpr:
'?'
;
ExprPrimary:
Identifier
;
OperatorExpr:
'+' expression=Expression
;
...
どうすれば警告を解決できますか?