If I'm not mistaken, it has to get to the point of the lexer digesting all the input, is that right? I think that's perhaps what you meant with "the connection (which happens in the parser not the lexer)"?
If that's so, do you see anything preventing the debugger connection steps being revised so that AW could perform just the connection handshake first, give the user feedback on that, and only then proceed to lexing and parsing?
This would allow users to debug the connection issues (which seem to regularly trip users up, perhaps unwarrantedly) separately from the grammar issues.
-- Graham
At 11/2/2009 06:09 PM, Jim Idle wrote:
This quite often happens because of a bad lexer that has an empty rule:
R : ;
This will currently generate code that just hangs trying to match nothing forever. Then it will time out on the connection (which happens in the parser not the lexer) and forever after, you will not be able to connect.
--~--~---------~--~----~------------~-------~--~----~
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/mailman/listinfo/antlr-interest Unsubscribe: http://www.antlr.org/mailman/options/antlr-interest/your-email-address
