[antlr-interest] handshake problems

Jim Idle jimi at temporal-wave.com
Fri Sep 16 15:23:11 PDT 2011


Sounds like you are generating with the -debug option, which generates code that talks to the antlrworks debugger. It will 'hang' waiting for a tcp socket connection. 

Jim

On Sep 16, 2011, at 12:45, David Smith <david.smith at cc.gatech.edu> wrote:

> I think I might have graduated from Kindergarten to Big Boy 
> questions.  Something annoying keeps happening within my Java 
> code.  It runs fine, then a butterfly flaps its wings somewhere, and 
> none of my code runs.  It stops in the middle of my (gr)Parser.java 
> at this code:
> 
>         setTokenStream(new DebugTokenStream(input,proxy));
>         try {
>             proxy.handshake();
>         }
> 
> It seems to disappear into compiled code in the handshake never to 
> reappear.  I have no idea what happened to cause this to fail and 
> therefore no idea how to fix it.  So I take a couple of Aspirin, take 
> the night off and maybe in the morning it will work again.
> 
> Two questions:
> 
> 1. Why are we shaking hands with something else when all I want to do 
> is parse a file?
> 
> 2. Do we know some settings somewhere that make this lightning strike 
> less likely?
> 
> DMS
> 
> David M. Smith http://www.cc.gatech.edu/fac/David.Smith
> Georgia Institute of Technology, College of Computing
> Sent from my ASR-33 Teletype 
> 
> 
> List: http://www.antlr.org/mailman/listinfo/antlr-interest
> Unsubscribe: http://www.antlr.org/mailman/options/antlr-interest/your-email-address


More information about the antlr-interest mailing list