[antlr-interest] Antlr Works debugger hangs on Linux (and Windows)
Jeffrey Newman
jeffn at photorepo.com
Tue Dec 7 07:33:30 PST 2010
On Tue, 2010-12-07 at 07:30 -0800, Jeffrey Newman wrote:
> I think I have solved the problem.
> Sorry for the noise on the mailing list.
> What I found was the following.
>
> On Suse 11.2 you must remove the exisiting antlr with Yaste.
> Then copy the antler works jar and antlr complete jar to favorite place.
> Then download the latest java jdk.
> Set up the path to include the java binaries,
> Set the class path to the antlr complete jar.
> Then use the T.g file for test.
> This seems to have actions. And it seems that Antlr works just hangs
> when running the debugger on the expr.g sample file.
>
> So, both Linux and Windows now show something with the T.g, and back to
> my studies.
>
> Jeffrey
>
> On Tue, 2010-12-07 at 04:28 -0800, Jeffrey Newman wrote:
> > 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:
> > jeffn at 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
>
>
More information about the antlr-interest
mailing list