On Wed, 2008-09-17 at 14:14 -0400, Tim Halloran wrote:
> My lexer is sending warnings to stderr of the form and I'd like to
> suppress these.
> 
> line 1:7 no viable alternative at character 'H'
> line 1:8 no viable alternative at character 'I'
> line 1:9 no viable alternative at character 'D'
> line 1:10 no viable alternative at character 'E'


Rather than do that, create a last rule in the lexer;

ANY : . { System.out.println("Don't support this char" + $text);
skip(); }

Or perhaps you want a filtering lexer?


Jim
> 
> 

--~--~---------~--~----~------------~-------~--~----~
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