Hi Guyz,

Am new to ANTLR, currently doing following steps and for some reason
debugging gets hanged.

* Have built a grammer and successfully generated the lexer parser
code through ANTLRWorks.
* Have created a class library visual studio project and copied lex/
parser files to this project
* The class library is NUnit aware, am using NUnit for debugging the
code
* Every thing goes well untill debugger tries to execute following
line of code

DebugEventSocketProxy proxy = new DebugEventSocketProxy(this, port,
adaptor);
DebugListener = proxy;
TokenStream = new DebugTokenStream(input, proxy);
try
{
      proxy.Handshake();  // Debugger/Application hangs at this point;
}
catch (IOException ioe)
{
      ReportError(ioe);
}


// Below is the client side code

String glCommandStatement = "SET DEBUG ON;";
GLGrammerLexer lex = new GLGrammerLexer(new ANTLRStringStream
(glCommandStatement));
CommonTokenStream tokens = new CommonTokenStream(lex);
GLGrammerParser parser = new GLGrammerParser(tokens); //Application
hanges here


What could be the cause of this problem? I have done following for
rectification but no success
* I have changed the default port 49100 to 52300. Just for the info
application was giving socket exception while on that and when changed
to new port though removed the exception but application still hangs
* Tried to comment the handskae code but still no luck, seems that it
is tightly integrated

Now am planning to do debugging without NUnit as the examples worked
quiet easily with no such issues.

Regards,
Asif
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"il-antlr-interest" group.
To post to this group, send email to il-antlr-interest@googlegroups.com
To unsubscribe from this group, send email to 
il-antlr-interest+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/il-antlr-interest?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to