On Wed, Sep 17, 2008 at 3:16 PM, Terence Parr <[EMAIL PROTECTED]> wrote:

> Or,Overrides the reporting method to do nothing :)
> Ter


I tried this with

@lexer::members {
@Override
public void reportError(RecognitionException e) {
    throw e;
}
}

but this is unhappy because I can't change the method signature to add
"throws RecognitionException."

Doing nothing, as Terrence suggested above, works but still accepts
sentences that are not in my language,  for example if I accept (hide) and I
give the string (***hide) where * is not accepted by my lexer the parser
views them as the same sentence.  This appears to be because the recover by
single symbol deletion is going on and I have not figured out how to turn it
off.  Am I correct?

Regards,
Tim

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"il-antlr-interest" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/il-antlr-interest?hl=en
-~----------~----~----~----~------~----~------~--~---

List: http://www.antlr.org:8080/mailman/listinfo/antlr-interest
Unsubscribe: 
http://www.antlr.org:8080/mailman/options/antlr-interest/your-email-address

Reply via email to