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:
> > 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
> 
> 



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.

Reply via email to