Sorry for the following beginner's question....
I have an ambiguous grammar which I would like to resolve during parsing.
I arranged for an event to be triggered when I have seen enough so that I can make a decision whether the current production will be the right one (by considering context). I would like to in the event handler either accept this lexeme (when I determine that this production is the correct one) or reject this lexeme (when I determine that this production is the wrong one). If I reject this lexeme, I hope that marpa will go on to try the other production which will now be the correct one.
Is this something reasonable to want to accomplish? If so, is there any example I could emulate for this behavior. It is easy to accept the lexeme, but I am having a hard time figuring out how to reject it and continue trying.
Thanks for any suggestions.