[antlr-interest] Using the ANTLRworks Debugger

Randall R Schulz rschulz at sonic.net
Sun Nov 19 09:44:31 PST 2006


Hi,

When I attempt to launch the debugger in ANTLRworks (stand-alone,
versino 1.0b6) I always get this after submitting the input:

Grammar compilation phase:

[09:36:26] warning(208): /dar/tau/src/tau/tstp/TSTP.g:1090:1: The following token definitions are unreachable: SingleQuoted
[09:36:28] Note: /dar/tau/src/tau/tstp/TSTPParser.java uses unchecked or unsafe operations.
[09:36:28] Note: Recompile with -Xlint:unchecked for details.


Parser invocation (following submission of test input and selection of entry-point grammar rule):

[09:36:31] /dar/tau/src/tau/tstp/__Test__.java:9: cannot find symbol
[09:36:31] symbol  : class TSTPLexer
[09:36:31] location: class __Test__
[09:36:31]         TSTPLexer lex = new TSTPLexer(new ANTLRFileStream("/dar/tau/src/tau/tstp/__Test___input.txt"));
[09:36:31]         ^
[09:36:31] /dar/tau/src/tau/tstp/__Test__.java:9: cannot find symbol
[09:36:31] symbol  : class TSTPLexer
[09:36:31] location: class __Test__
[09:36:31]         TSTPLexer lex = new TSTPLexer(new ANTLRFileStream("/dar/tau/src/tau/tstp/__Test___input.txt"));
[09:36:31]                             ^
[09:36:31] /dar/tau/src/tau/tstp/__Test__.java:12: cannot find symbol
[09:36:31] symbol  : class TSTPParser
[09:36:31] location: class __Test__
[09:36:31]         TSTPParser g = new TSTPParser(tokens);
[09:36:31]         ^
[09:36:31] /dar/tau/src/tau/tstp/__Test__.java:12: cannot find symbol
[09:36:31] symbol  : class TSTPParser
[09:36:31] location: class __Test__
[09:36:31]         TSTPParser g = new TSTPParser(tokens);
[09:36:31]                            ^
[09:36:31] 4 errors


This happens whether or not I put the directory holding my project's
compiled class files into the "custom" classpath field of the "Compiler"
pane of the "Preferences" dialog.


What am I doing wrong?


Randall Schulz


More information about the antlr-interest mailing list