-
Notifications
You must be signed in to change notification settings - Fork 24
Open
Description
Hi,
I was testing the java suggester you uploaded and I found and important issue.
This is the grammar I am using:
grammar Grammar;
rul : 'If the user ' condition;
condition
: '(' simpleCondition bracket
| simpleCondition
;
simpleCondition
: 'is vegetarian'
;
bracket : ')';
When the input sentence is "If the user is vegetarian", the suggestions should be empty but the token ')' is suggested instead. It seems incorrect suggestions happen when the parser rule (in this case simpleCondition) is used in other rules and the element that follows it is another parser rule.
Do you know how to fix this?
Thank you.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels