I'm trying to get Antlr works debugger to work with a simple test
grammer. I'm working on Linux (Suse 11.2).
I get a few steps into the debugger.
and then AntlrWorks hangs.
The linux console shows:
je...@merlin-3:/opt/antlr> ./antlrworks
java.lang.NullPointerException
java.lang.NullPointerException
at
org.antlr.runtime.debug.RemoteDebugEventSocketListener.dispatch(RemoteDebugEventSocketListener.java:275)
at
org.antlr.runtime.debug.RemoteDebugEventSocketListener.eventHandler(RemoteDebugEventSocketListener.java:176)
at
org.antlr.runtime.debug.RemoteDebugEventSocketListener.run(RemoteDebugEventSocketListener.java:472)
at java.lang.Thread.run(Thread.java:662)
So, this looks like a NULL Pointer.
Any suggestions about what I can do to use the Antlrworks debugger?
Any help would really be appreciated.
I've tried to bring this up Windows, and I have a similar problem.
thanks in advance
Jeffrey
Following is from the events tab.
0
Commence
1
Enter
rule /home/jeffn/tmp/antlr-book/chap-3/Expr.g:prog
2
Location
(6,1)
3
Enter alt 1
4
Location
(6,8)
5
Enter
subrule 1
1
Grammar:
grammar Expr;
prog : stat+ ;
stat : expr NEWLINE
| ID '=' NEWLINE
| NEWLINE
;
expr : multExpr (('+' | '-') multExpr)*
;
multExpr
: atom ('*' atom)*
;
atom : INT
| ID
| '(' expr ')'
;
ID : ('a'..'z' | 'A'.. 'Z')+ ;
INT : '0'..'9'+ ;
NEWLINE : '\r'? '\n' ;
WS : (' ' | '\t' | '\n' | '\r')+ {skip();} ;
List: http://www.antlr.org/mailman/listinfo/antlr-interest
Unsubscribe:
http://www.antlr.org/mailman/options/antlr-interest/your-email-address
--
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.