[antlr-interest] Problem with remote debugging
RoesslerWolfgang
contact at roessler-wolfgang.de
Sun Dec 27 10:04:05 PST 2009
Hello,
I have a problem getting remote debugging working.
I start the generated C# parser. It pauses at construction of the SclParser
and waits till I have connected ANTLRWorks with "Debug remote. The debugger
displays "Break on Commence" and when parsing continues with executing
sclParser.prog() the debugger never stops at any breakpoint or so. I see
that the grammer is correct, because of the console output. I also can't see
anything in the "Input"-window although I have enabled "Show Input Tokens".
So currently debugging is not possible. Can anybody help me?
I have the following configuration:
- ANTLR .NET runtime 3.1.1
- ANTLRWorks 1.3.1
My grammer:
grammar Scl;
options
{
language = 'CSharp2';
}
prog : stat+ ;
stat : expr NEWLINE
| ID '=' expr NEWLINE
| NEWLINE
;
expr : multExpr (('+' | '-') multExpr)*
;
multExpr
: atom ('*' atom)*
;
atom : INT { Console.WriteLine("INT"); }
| ID { Console.WriteLine("ID"); }
| '(' expr ')' { Console.WriteLine("expr"); }
;
ID : ('a'..'z' | 'A'..'Z')+ ;
INT : '0'..'9'+ ;
NEWLINE : '\r'? '\n' ;
WS : (' ' | '\t' | '\n' | '\r')+ ;
My test-driver:
ANTLRStringStream inputStream = new
ANTLRStringStream("(2+3)*5\n");
SclLexer sclLexer = new SclLexer(inputStream);
CommonTokenStream tokenStream = new CommonTokenStream(sclLexer);
SclParser sclParser = new SclParser(tokenStream);
sclParser.prog();
Thanks in advance,
Wolfgang
--
View this message in context: http://n2.nabble.com/Problem-with-remote-debugging-tp4221093p4221093.html
Sent from the ANTLR mailing list archive at Nabble.com.
More information about the antlr-interest
mailing list