antlr / antlrworks

AntlrWorks tool for ANTLR
http://www.antlr.org/works
98 stars 46 forks source link

ANTLRWorks for MAC OS does not display characters | and ( in text fields. #11

Closed imochurad closed 11 years ago

imochurad commented 11 years ago

screen shot 2013-06-21 at 10 44 56 am

this is how my simple grammar looks copied in text editor:

grammar TestExpr;

options {
output=AST;
    ASTLabelType=CommonTree; 
}

expr
    :   andExpr (('OR'|'|') andExpr)* EOF;
andExpr :   notExpr(('AND'|','|'+') notExpr)*;
notExpr :   ('NOT'|'-')? kpp;   
kpp :   keyword|phrase|proximity|'(' expr ')';
keyword
    :   CHAR;
phrase
    :   '"' keyword (PHRASE_SEPARATOR keyword)* '"';
proximity
    :   phrase '~' INT;
CHAR    :   ('A'..'Z') | ('a'..'z')+;
INT :   '0'..'9'+;
NEWLINE :   '\r'? '\n';
PHRASE_SEPARATOR    :   '\u2022';
WS  :   (' '|'\t'|'\n'|'\r')+ {skip();};
sharwell commented 11 years ago

Can you post a screenshot of this issue so we know where to look?

imochurad commented 11 years ago

Updated

sharwell commented 11 years ago

What version of ANTLRWorks are you using? Is it the official release 1.5, or did you build from source (and if from source, what is the commit hash)?

imochurad commented 11 years ago

1.5

sharwell commented 11 years ago

Thank you. This may have been fixed with #8. Are you able to build the latest master branch from source to try it out?

imochurad commented 11 years ago

I can give it a try, could you instruct me on how it could be built?

sharwell commented 11 years ago

If you use File → Open Project in NetBeans 7.3 to open the pom.xml, it should load, build, and run without any extra configuration. It should also work to execute mvn build on the command line.

imochurad commented 11 years ago

does zip file contain the most recent fixes?

sharwell commented 11 years ago

I built the latest for you to try:

http://tunnelvisionlabs.com/downloads/antlr/2013-06-21-antlrworks-1.5.1-SNAPSHOT-complete-1266038.jar

imochurad commented 11 years ago

I've unpacked that jar file and I can't find .app or .dmg file. Should I build it? Sorry for silly question..

sharwell commented 11 years ago

It's an executable jar file. It won't have a fancy application icon, but you can run it by either double clicking it (works on Windows) or running java -jar 2013-06-21-antlrworks-1.5.1-SNAPSHOT-complete-1266038.jar.

imochurad commented 11 years ago

Issue still exists, on top of that when i try to debug my grammar dialog shows up with message: "Compiler failed with result code 1" and process stops.

sharwell commented 11 years ago

Debugging was broken in release 1.5 (would report compiler errors), but has since been fixed. Unfortunately the display problem doesn't occur on Windows, so I have no way to test the problem or attempt to correct it. Perhaps if you change the font face or size it will be fixed?

imochurad commented 11 years ago

I'll give it a try and let you know.

sharwell commented 11 years ago

Can you also see if there's any way to get the specific compiler error information?

imochurad commented 11 years ago

I switched it from Courier New 12 to Symbol 14 and it looks good now.

sharwell commented 11 years ago

Glad to hear. Any word on the specific error reported by the compiler when you tried to debug?

imochurad commented 11 years ago

this is what i see in console:

[15:07:05] warning(138): TestExpr.g:0:1: grammar TestExpr: no start rule (no rule can obviously be followed by EOF)
[15:07:05] warning(138): /Users/imochurad/__Development__/antlr3/Grammars/TestExpr.g:0:1: grammar TestExpr: no start rule (no rule can obviously be followed by EOF)
[15:07:06] /Users/imochurad/__Development__/antlr3/Grammars/output/TestExprParser.java:14: cannot find symbol
[15:07:06] symbol: class DebugParser
[15:07:06] public class TestExprParser extends DebugParser {
[15:07:06]                                     ^
[15:07:06] /Users/imochurad/__Development__/antlr3/Grammars/output/TestExprParser.java:94: cannot find symbol
[15:07:06] symbol  : class DebugTreeAdaptor
[15:07:06] location: class TestExprParser
[15:07:06]      protected DebugTreeAdaptor adaptor;
[15:07:06]                ^
[15:07:06] /Users/imochurad/__Development__/antlr3/Grammars/output/TestExprParser.java:62: cannot find symbol
[15:07:06] symbol  : variable DebugEventSocketProxy
[15:07:06] location: class TestExprParser
[15:07:06]      this(input, DebugEventSocketProxy.DEFAULT_DEBUGGER_PORT, new RecognizerSharedState());
[15:07:06]                  ^
[15:07:06] /Users/imochurad/__Development__/antlr3/Grammars/output/TestExprParser.java:66: cannot find symbol
[15:07:06] symbol  : class DebugEventSocketProxy
[15:07:06] location: class TestExprParser
[15:07:06]      DebugEventSocketProxy proxy =
[15:07:06]      ^
[15:07:06] /Users/imochurad/__Development__/antlr3/Grammars/output/TestExprParser.java:67: cannot find symbol
[15:07:06] symbol  : class DebugEventSocketProxy
[15:07:06] location: class TestExprParser
[15:07:06]          new DebugEventSocketProxy(this,port,adaptor);
[15:07:06]              ^
[15:07:06] /Users/imochurad/__Development__/antlr3/Grammars/output/TestExprParser.java:69: cannot find symbol
[15:07:06] symbol  : class DebugTokenStream
[15:07:06] location: class TestExprParser
[15:07:06]      setTokenStream(new DebugTokenStream(input,proxy));
[15:07:06]                         ^
[15:07:06] /Users/imochurad/__Development__/antlr3/Grammars/output/TestExprParser.java:74: cannot find symbol
[15:07:06] symbol  : method reportError(java.io.IOException)
[15:07:06] location: class TestExprParser
[15:07:06]          reportError(ioe);
[15:07:06]          ^
[15:07:06] /Users/imochurad/__Development__/antlr3/Grammars/output/TestExprParser.java:90: cannot find symbol
[15:07:06] symbol  : variable dbg
[15:07:06] location: class TestExprParser
[15:07:06]      dbg.semanticPredicate(result, predicate);
[15:07:06]      ^
[15:07:06] /Users/imochurad/__Development__/antlr3/Grammars/output/TestExprParser.java:96: cannot find symbol
[15:07:06] symbol  : class DebugTreeAdaptor
[15:07:06] location: class TestExprParser
[15:07:06]          this.adaptor = new DebugTreeAdaptor(dbg,adaptor);
[15:07:06]                             ^
[15:07:06] /Users/imochurad/__Development__/antlr3/Grammars/output/TestExprParser.java:96: cannot find symbol
[15:07:06] symbol  : variable dbg
[15:07:06] location: class TestExprParser
[15:07:06]          this.adaptor = new DebugTreeAdaptor(dbg,adaptor);
[15:07:06]                                              ^
[15:07:06] /Users/imochurad/__Development__/antlr3/Grammars/output/TestExprParser.java:101: method does not override or implement a method from a supertype
[15:07:06]  @Override public String[] getTokenNames() { return TestExprParser.tokenNames; }
[15:07:06]  ^
[15:07:06] /Users/imochurad/__Development__/antlr3/Grammars/output/TestExprParser.java:102: method does not override or implement a method from a supertype
[15:07:06]  @Override public String getGrammarFileName() { return "/Users/imochurad/__Development__/antlr3/Grammars/TestExpr.g"; }
[15:07:06]  ^
[15:07:06] /Users/imochurad/__Development__/antlr3/Grammars/output/TestExprParser.java:116: cannot find symbol
[15:07:06] symbol  : variable input
[15:07:06] location: class TestExprParser
[15:07:06]      retval.start = input.LT(1);
[15:07:06]                     ^
[15:07:06] /Users/imochurad/__Development__/antlr3/Grammars/output/TestExprParser.java:128: cannot find symbol
[15:07:06] symbol  : variable dbg
[15:07:06] location: class TestExprParser
[15:07:06]      try { dbg.enterRule(getGrammarFileName(), "expr");
[15:07:06]            ^
[15:07:06] /Users/imochurad/__Development__/antlr3/Grammars/output/TestExprParser.java:129: cannot find symbol
[15:07:06] symbol  : variable dbg
[15:07:06] location: class TestExprParser
[15:07:06]      if ( getRuleLevel()==0 ) {dbg.commence();}
[15:07:06]                                ^
[15:07:06] /Users/imochurad/__Development__/antlr3/Grammars/output/TestExprParser.java:131: cannot find symbol
[15:07:06] symbol  : variable dbg
[15:07:06] location: class TestExprParser
[15:07:06]      dbg.location(8, 0);
[15:07:06]      ^
[15:07:06] /Users/imochurad/__Development__/antlr3/Grammars/output/TestExprParser.java:135: cannot find symbol
[15:07:06] symbol  : variable dbg
[15:07:06] location: class TestExprParser
[15:07:06]          dbg.enterAlt(1);
[15:07:06]          ^
[15:07:06] /Users/imochurad/__Development__/antlr3/Grammars/output/TestExprParser.java:142: cannot find symbol
[15:07:06] symbol  : variable dbg
[15:07:06] location: class TestExprParser
[15:07:06]          dbg.location(9,4);
[15:07:06]          ^
[15:07:06] /Users/imochurad/__Development__/antlr3/Grammars/output/TestExprParser.java:143: cannot find symbol
[15:07:06] symbol  : method pushFollow(org.antlr.runtime.BitSet)
[15:07:06] location: class TestExprParser
[15:07:06]          pushFollow(FOLLOW_andExpr_in_expr31);
[15:07:06]          ^
[15:07:06] /Users/imochurad/__Development__/antlr3/Grammars/output/TestExprParser.java:145: cannot find symbol
[15:07:06] symbol  : variable state
[15:07:06] location: class TestExprParser
[15:07:06]          state._fsp--;
[15:07:06]          ^
[15:07:06] /Users/imochurad/__Development__/antlr3/Grammars/output/TestExprParser.java:148: cannot find symbol
[15:07:06] symbol  : variable dbg
[15:07:06] location: class TestExprParser
[15:07:06]          dbg.location(9,12);
[15:07:06]          ^
[15:07:06] /Users/imochurad/__Development__/antlr3/Grammars/output/TestExprParser.java:150: cannot find symbol
[15:07:06] symbol  : variable dbg
[15:07:06] location: class TestExprParser
[15:07:06]          try { dbg.enterSubRule(1);
[15:07:06]                ^
[15:07:06] /Users/imochurad/__Development__/antlr3/Grammars/output/TestExprParser.java:155: cannot find symbol
[15:07:06] symbol  : variable dbg
[15:07:06] location: class TestExprParser
[15:07:06]              try { dbg.enterDecision(1, decisionCanBacktrack[1]);
[15:07:06]                    ^
[15:07:06] /Users/imochurad/__Development__/antlr3/Grammars/output/TestExprParser.java:157: cannot find symbol
[15:07:06] symbol  : variable input
[15:07:06] location: class TestExprParser
[15:07:06]              int LA1_0 = input.LA(1);
[15:07:06]                          ^
[15:07:06] /Users/imochurad/__Development__/antlr3/Grammars/output/TestExprParser.java:162: cannot find symbol
[15:07:06] symbol  : variable dbg
[15:07:06] location: class TestExprParser
[15:07:06]              } finally {dbg.exitDecision(1);}
[15:07:06]                         ^
[15:07:06] /Users/imochurad/__Development__/antlr3/Grammars/output/TestExprParser.java:166: cannot find symbol
[15:07:06] symbol  : variable dbg
[15:07:06] location: class TestExprParser
[15:07:06]                  dbg.enterAlt(1);
[15:07:06]                  ^
[15:07:06] /Users/imochurad/__Development__/antlr3/Grammars/output/TestExprParser.java:170: cannot find symbol
[15:07:06] symbol  : variable dbg
[15:07:06] location: class TestExprParser
[15:07:06]                  dbg.location(9,13);
[15:07:06]                  ^
[15:07:06] /Users/imochurad/__Development__/antlr3/Grammars/output/TestExprParser.java:171: cannot find symbol
[15:07:06] symbol  : variable input
[15:07:06] location: class TestExprParser
[15:07:06]                  set2=input.LT(1);
[15:07:06]                       ^
[15:07:06] /Users/imochurad/__Development__/antlr3/Grammars/output/TestExprParser.java:172: cannot find symbol
[15:07:06] symbol  : variable input
[15:07:06] location: class TestExprParser
[15:07:06]                  if ( (input.LA(1) >= 17 && input.LA(1) <= 18) ) {
[15:07:06]                        ^
[15:07:06] /Users/imochurad/__Development__/antlr3/Grammars/output/TestExprParser.java:172: cannot find symbol
[15:07:06] symbol  : variable input
[15:07:06] location: class TestExprParser
[15:07:06]                  if ( (input.LA(1) >= 17 && input.LA(1) <= 18) ) {
[15:07:06]                                             ^
[15:07:06] /Users/imochurad/__Development__/antlr3/Grammars/output/TestExprParser.java:173: cannot find symbol
[15:07:06] symbol  : variable input
[15:07:06] location: class TestExprParser
[15:07:06]                      input.consume();
[15:07:06]                      ^
[15:07:06] /Users/imochurad/__Development__/antlr3/Grammars/output/TestExprParser.java:175: cannot find symbol
[15:07:06] symbol  : variable state
[15:07:06] location: class TestExprParser
[15:07:06]                      state.errorRecovery=false;
[15:07:06]                      ^
[15:07:06] /Users/imochurad/__Development__/antlr3/Grammars/output/TestExprParser.java:178: cannot find symbol
[15:07:06] symbol  : variable input
[15:07:06] location: class TestExprParser
[15:07:06]                      MismatchedSetException mse = new MismatchedSetException(null,input);
[15:07:06]                                                                                   ^
[15:07:06] /Users/imochurad/__Development__/antlr3/Grammars/output/TestExprParser.java:179: cannot find symbol
[15:07:06] symbol  : variable dbg
[15:07:06] location: class TestExprParser
[15:07:06]                      dbg.recognitionException(mse);
[15:07:06]                      ^
[15:07:06] /Users/imochurad/__Development__/antlr3/Grammars/output/TestExprParser.java:181: cannot find symbol
[15:07:06] symbol  : variable dbg
[15:07:06] location: class TestExprParser
[15:07:06]                  }dbg.location(9,24);
[15:07:06]                   ^
[15:07:06] /Users/imochurad/__Development__/antlr3/Grammars/output/TestExprParser.java:182: cannot find symbol
[15:07:06] symbol  : method pushFollow(org.antlr.runtime.BitSet)
[15:07:06] location: class TestExprParser
[15:07:06]                  pushFollow(FOLLOW_andExpr_in_expr40);
[15:07:06]                  ^
[15:07:06] /Users/imochurad/__Development__/antlr3/Grammars/output/TestExprParser.java:184: cannot find symbol
[15:07:06] symbol  : variable state
[15:07:06] location: class TestExprParser
[15:07:06]                  state._fsp--;
[15:07:06]                  ^
[15:07:06] /Users/imochurad/__Development__/antlr3/Grammars/output/TestExprParser.java:195: cannot find symbol
[15:07:06] symbol  : variable dbg
[15:07:06] location: class TestExprParser
[15:07:06]          } finally {dbg.exitSubRule(1);}
[15:07:06]                     ^
[15:07:06] /Users/imochurad/__Development__/antlr3/Grammars/output/TestExprParser.java:196: cannot find symbol
[15:07:06] symbol  : variable dbg
[15:07:06] location: class TestExprParser
[15:07:06]          dbg.location(9,34);
[15:07:06]          ^
[15:07:06] /Users/imochurad/__Development__/antlr3/Grammars/output/TestExprParser.java:197: cannot find symbol
[15:07:06] symbol  : variable input
[15:07:06] location: class TestExprParser
[15:07:06]          EOF4=(Token)match(input,EOF,FOLLOW_EOF_in_expr44); 
[15:07:06]                            ^
[15:07:06] /Users/imochurad/__Development__/antlr3/Grammars/output/TestExprParser.java:203: cannot find symbol
[15:07:06] symbol  : variable input
[15:07:06] location: class TestExprParser
[15:07:06]          retval.stop = input.LT(-1);
[15:07:06]                        ^
[15:07:06] /Users/imochurad/__Development__/antlr3/Grammars/output/TestExprParser.java:210: cannot find symbol
[15:07:06] symbol  : method reportError(org.antlr.runtime.RecognitionException)
[15:07:06] location: class TestExprParser
[15:07:06]          reportError(re);
[15:07:06]          ^
[15:07:06] /Users/imochurad/__Development__/antlr3/Grammars/output/TestExprParser.java:211: cannot find symbol
[15:07:06] symbol  : variable input
[15:07:06] location: class TestExprParser
[15:07:06]          recover(input,re);
[15:07:06]                  ^
[15:07:06] /Users/imochurad/__Development__/antlr3/Grammars/output/TestExprParser.java:212: cannot find symbol
[15:07:06] symbol  : variable input
[15:07:06] location: class TestExprParser
[15:07:06]          retval.tree = (CommonTree)adaptor.errorNode(input, retval.start, input.LT(-1), re);
[15:07:06]                                                      ^
[15:07:06] /Users/imochurad/__Development__/antlr3/Grammars/output/TestExprParser.java:212: cannot find symbol
[15:07:06] symbol  : variable input
[15:07:06] location: class TestExprParser
[15:07:06]          retval.tree = (CommonTree)adaptor.errorNode(input, retval.start, input.LT(-1), re);
[15:07:06]                                                                           ^
[15:07:06] /Users/imochurad/__Development__/antlr3/Grammars/output/TestExprParser.java:217: cannot find symbol
[15:07:06] symbol  : variable dbg
[15:07:06] location: class TestExprParser
[15:07:06]      dbg.location(9, 36);
[15:07:06]      ^
[15:07:06] /Users/imochurad/__Development__/antlr3/Grammars/output/TestExprParser.java:221: cannot find symbol
[15:07:06] symbol  : variable dbg
[15:07:06] location: class TestExprParser
[15:07:06]          dbg.exitRule(getGrammarFileName(), "expr");
[15:07:06]          ^
[15:07:06] /Users/imochurad/__Development__/antlr3/Grammars/output/TestExprParser.java:223: cannot find symbol
[15:07:06] symbol  : variable dbg
[15:07:06] location: class TestExprParser
[15:07:06]          if ( getRuleLevel()==0 ) {dbg.terminate();}
[15:07:06]                                    ^
[15:07:06] /Users/imochurad/__Development__/antlr3/Grammars/output/TestExprParser.java:242: cannot find symbol
[15:07:06] symbol  : variable input
[15:07:06] location: class TestExprParser
[15:07:06]      retval.start = input.LT(1);
[15:07:06]                     ^
[15:07:06] /Users/imochurad/__Development__/antlr3/Grammars/output/TestExprParser.java:252: cannot find symbol
[15:07:06] symbol  : variable dbg
[15:07:06] location: class TestExprParser
[15:07:06]      try { dbg.enterRule(getGrammarFileName(), "andExpr");
[15:07:06]            ^
[15:07:06] /Users/imochurad/__Development__/antlr3/Grammars/output/TestExprParser.java:253: cannot find symbol
[15:07:06] symbol  : variable dbg
[15:07:06] location: class TestExprParser
[15:07:06]      if ( getRuleLevel()==0 ) {dbg.commence();}
[15:07:06]                                ^
[15:07:06] /Users/imochurad/__Development__/antlr3/Grammars/output/TestExprParser.java:255: cannot find symbol
[15:07:06] symbol  : variable dbg
[15:07:06] location: class TestExprParser
[15:07:06]      dbg.location(10, 0);
[15:07:06]      ^
[15:07:06] /Users/imochurad/__Development__/antlr3/Grammars/output/TestExprParser.java:259: cannot find symbol
[15:07:06] symbol  : variable dbg
[15:07:06] location: class TestExprParser
[15:07:06]          dbg.enterAlt(1);
[15:07:06]          ^
[15:07:06] /Users/imochurad/__Development__/antlr3/Grammars/output/TestExprParser.java:266: cannot find symbol
[15:07:06] symbol  : variable dbg
[15:07:06] location: class TestExprParser
[15:07:06]          dbg.location(10,11);
[15:07:06]          ^
[15:07:06] /Users/imochurad/__Development__/antlr3/Grammars/output/TestExprParser.java:267: cannot find symbol
[15:07:06] symbol  : method pushFollow(org.antlr.runtime.BitSet)
[15:07:06] location: class TestExprParser
[15:07:06]          pushFollow(FOLLOW_notExpr_in_andExpr51);
[15:07:06]          ^
[15:07:06] /Users/imochurad/__Development__/antlr3/Grammars/output/TestExprParser.java:269: cannot find symbol
[15:07:06] symbol  : variable state
[15:07:06] location: class TestExprParser
[15:07:06]          state._fsp--;
[15:07:06]          ^
[15:07:06] /Users/imochurad/__Development__/antlr3/Grammars/output/TestExprParser.java:272: cannot find symbol
[15:07:06] symbol  : variable dbg
[15:07:06] location: class TestExprParser
[15:07:06]          dbg.location(10,18);
[15:07:06]          ^
[15:07:06] /Users/imochurad/__Development__/antlr3/Grammars/output/TestExprParser.java:274: cannot find symbol
[15:07:06] symbol  : variable dbg
[15:07:06] location: class TestExprParser
[15:07:06]          try { dbg.enterSubRule(2);
[15:07:06]                ^
[15:07:06] /Users/imochurad/__Development__/antlr3/Grammars/output/TestExprParser.java:279: cannot find symbol
[15:07:06] symbol  : variable dbg
[15:07:06] location: class TestExprParser
[15:07:06]              try { dbg.enterDecision(2, decisionCanBacktrack[2]);
[15:07:06]                    ^
[15:07:06] /Users/imochurad/__Development__/antlr3/Grammars/output/TestExprParser.java:281: cannot find symbol
[15:07:06] symbol  : variable input
[15:07:06] location: class TestExprParser
[15:07:06]              int LA2_0 = input.LA(1);
[15:07:06]                          ^
[15:07:06] /Users/imochurad/__Development__/antlr3/Grammars/output/TestExprParser.java:286: cannot find symbol
[15:07:06] symbol  : variable dbg
[15:07:06] location: class TestExprParser
[15:07:06]              } finally {dbg.exitDecision(2);}
[15:07:06]                         ^
[15:07:06] /Users/imochurad/__Development__/antlr3/Grammars/output/TestExprParser.java:290: cannot find symbol
[15:07:06] symbol  : variable dbg
[15:07:06] location: class TestExprParser
[15:07:06]                  dbg.enterAlt(1);
[15:07:06]                  ^
[15:07:06] /Users/imochurad/__Development__/antlr3/Grammars/output/TestExprParser.java:294: cannot find symbol
[15:07:06] symbol  : variable dbg
[15:07:06] location: class TestExprParser
[15:07:06]                  dbg.location(10,19);
[15:07:06]                  ^
[15:07:06] /Users/imochurad/__Development__/antlr3/Grammars/output/TestExprParser.java:295: cannot find symbol
[15:07:06] symbol  : variable input
[15:07:06] location: class TestExprParser
[15:07:06]                  set6=input.LT(1);
[15:07:06]                       ^
[15:07:06] /Users/imochurad/__Development__/antlr3/Grammars/output/TestExprParser.java:296: cannot find symbol
[15:07:06] symbol  : variable input
[15:07:06] location: class TestExprParser
[15:07:06]                  if ( (input.LA(1) >= 12 && input.LA(1) <= 13)||input.LA(1)==15 ) {
[15:07:06]                        ^
[15:07:06] /Users/imochurad/__Development__/antlr3/Grammars/output/TestExprParser.java:296: cannot find symbol
[15:07:06] symbol  : variable input
[15:07:06] location: class TestExprParser
[15:07:06]                  if ( (input.LA(1) >= 12 && input.LA(1) <= 13)||input.LA(1)==15 ) {
[15:07:06]                                             ^
[15:07:06] /Users/imochurad/__Development__/antlr3/Grammars/output/TestExprParser.java:296: cannot find symbol
[15:07:06] symbol  : variable input
[15:07:06] location: class TestExprParser
[15:07:06]                  if ( (input.LA(1) >= 12 && input.LA(1) <= 13)||input.LA(1)==15 ) {
[15:07:06]                                                                 ^
[15:07:06] /Users/imochurad/__Development__/antlr3/Grammars/output/TestExprParser.java:297: cannot find symbol
[15:07:06] symbol  : variable input
[15:07:06] location: class TestExprParser
[15:07:06]                      input.consume();
[15:07:06]                      ^
[15:07:06] /Users/imochurad/__Development__/antlr3/Grammars/output/TestExprParser.java:299: cannot find symbol
[15:07:06] symbol  : variable state
[15:07:06] location: class TestExprParser
[15:07:06]                      state.errorRecovery=false;
[15:07:06]                      ^
[15:07:06] /Users/imochurad/__Development__/antlr3/Grammars/output/TestExprParser.java:302: cannot find symbol
[15:07:06] symbol  : variable input
[15:07:06] location: class TestExprParser
[15:07:06]                      MismatchedSetException mse = new MismatchedSetException(null,input);
[15:07:06]                                                                                   ^
[15:07:06] /Users/imochurad/__Development__/antlr3/Grammars/output/TestExprParser.java:303: cannot find symbol
[15:07:06] symbol  : variable dbg
[15:07:06] location: class TestExprParser
[15:07:06]                      dbg.recognitionException(mse);
[15:07:06]                      ^
[15:07:06] /Users/imochurad/__Development__/antlr3/Grammars/output/TestExprParser.java:305: cannot find symbol
[15:07:06] symbol  : variable dbg
[15:07:06] location: class TestExprParser
[15:07:06]                  }dbg.location(10,35);
[15:07:06]                   ^
[15:07:06] /Users/imochurad/__Development__/antlr3/Grammars/output/TestExprParser.java:306: cannot find symbol
[15:07:06] symbol  : method pushFollow(org.antlr.runtime.BitSet)
[15:07:06] location: class TestExprParser
[15:07:06]                  pushFollow(FOLLOW_notExpr_in_andExpr61);
[15:07:06]                  ^
[15:07:06] /Users/imochurad/__Development__/antlr3/Grammars/output/TestExprParser.java:308: cannot find symbol
[15:07:06] symbol  : variable state
[15:07:06] location: class TestExprParser
[15:07:06]                  state._fsp--;
[15:07:06]                  ^
[15:07:06] /Users/imochurad/__Development__/antlr3/Grammars/output/TestExprParser.java:319: cannot find symbol
[15:07:06] symbol  : variable dbg
[15:07:06] location: class TestExprParser
[15:07:06]          } finally {dbg.exitSubRule(2);}
[15:07:06]                     ^
[15:07:06] /Users/imochurad/__Development__/antlr3/Grammars/output/TestExprParser.java:323: cannot find symbol
[15:07:06] symbol  : variable input
[15:07:06] location: class TestExprParser
[15:07:06]          retval.stop = input.LT(-1);
[15:07:06]                        ^
[15:07:06] /Users/imochurad/__Development__/antlr3/Grammars/output/TestExprParser.java:330: cannot find symbol
[15:07:06] symbol  : method reportError(org.antlr.runtime.RecognitionException)
[15:07:06] location: class TestExprParser
[15:07:06]          reportError(re);
[15:07:06]          ^
[15:07:06] /Users/imochurad/__Development__/antlr3/Grammars/output/TestExprParser.java:331: cannot find symbol
[15:07:06] symbol  : variable input
[15:07:06] location: class TestExprParser
[15:07:06]          recover(input,re);
[15:07:06]                  ^
[15:07:06] /Users/imochurad/__Development__/antlr3/Grammars/output/TestExprParser.java:332: cannot find symbol
[15:07:06] symbol  : variable input
[15:07:06] location: class TestExprParser
[15:07:06]          retval.tree = (CommonTree)adaptor.errorNode(input, retval.start, input.LT(-1), re);
[15:07:06]                                                      ^
[15:07:06] /Users/imochurad/__Development__/antlr3/Grammars/output/TestExprParser.java:332: cannot find symbol
[15:07:06] symbol  : variable input
[15:07:06] location: class TestExprParser
[15:07:06]          retval.tree = (CommonTree)adaptor.errorNode(input, retval.start, input.LT(-1), re);
[15:07:06]                                                                           ^
[15:07:06] /Users/imochurad/__Development__/antlr3/Grammars/output/TestExprParser.java:337: cannot find symbol
[15:07:06] symbol  : variable dbg
[15:07:06] location: class TestExprParser
[15:07:06]      dbg.location(10, 43);
[15:07:06]      ^
[15:07:06] /Users/imochurad/__Development__/antlr3/Grammars/output/TestExprParser.java:341: cannot find symbol
[15:07:06] symbol  : variable dbg
[15:07:06] location: class TestExprParser
[15:07:06]          dbg.exitRule(getGrammarFileName(), "andExpr");
[15:07:06]          ^
[15:07:06] /Users/imochurad/__Development__/antlr3/Grammars/output/TestExprParser.java:343: cannot find symbol
[15:07:06] symbol  : variable dbg
[15:07:06] location: class TestExprParser
[15:07:06]          if ( getRuleLevel()==0 ) {dbg.terminate();}
[15:07:06]                                    ^
[15:07:06] /Users/imochurad/__Development__/antlr3/Grammars/output/TestExprParser.java:362: cannot find symbol
[15:07:06] symbol  : variable input
[15:07:06] location: class TestExprParser
[15:07:06]      retval.start = input.LT(1);
[15:07:06]                     ^
[15:07:06] /Users/imochurad/__Development__/antlr3/Grammars/output/TestExprParser.java:371: cannot find symbol
[15:07:06] symbol  : variable dbg
[15:07:06] location: class TestExprParser
[15:07:06]      try { dbg.enterRule(getGrammarFileName(), "notExpr");
[15:07:06]            ^
[15:07:06] /Users/imochurad/__Development__/antlr3/Grammars/output/TestExprParser.java:372: cannot find symbol
[15:07:06] symbol  : variable dbg
[15:07:06] location: class TestExprParser
[15:07:06]      if ( getRuleLevel()==0 ) {dbg.commence();}
[15:07:06]                                ^
[15:07:06] /Users/imochurad/__Development__/antlr3/Grammars/output/TestExprParser.java:374: cannot find symbol
[15:07:06] symbol  : variable dbg
[15:07:06] location: class TestExprParser
[15:07:06]      dbg.location(11, 0);
[15:07:06]      ^
[15:07:06] /Users/imochurad/__Development__/antlr3/Grammars/output/TestExprParser.java:378: cannot find symbol
[15:07:06] symbol  : variable dbg
[15:07:06] location: class TestExprParser
[15:07:06]          dbg.enterAlt(1);
[15:07:06]          ^
[15:07:06] /Users/imochurad/__Development__/antlr3/Grammars/output/TestExprParser.java:385: cannot find symbol
[15:07:06] symbol  : variable dbg
[15:07:06] location: class TestExprParser
[15:07:06]          dbg.location(11,11);
[15:07:06]          ^
[15:07:06] /Users/imochurad/__Development__/antlr3/Grammars/output/TestExprParser.java:388: cannot find symbol
[15:07:06] symbol  : variable dbg
[15:07:06] location: class TestExprParser
[15:07:06]          try { dbg.enterSubRule(3);
[15:07:06]                ^
[15:07:06] /Users/imochurad/__Development__/antlr3/Grammars/output/TestExprParser.java:389: cannot find symbol
[15:07:06] symbol  : variable dbg
[15:07:06] location: class TestExprParser
[15:07:06]          try { dbg.enterDecision(3, decisionCanBacktrack[3]);
[15:07:06]                ^
[15:07:06] /Users/imochurad/__Development__/antlr3/Grammars/output/TestExprParser.java:391: cannot find symbol
[15:07:06] symbol  : variable input
[15:07:06] location: class TestExprParser
[15:07:06]          int LA3_0 = input.LA(1);
[15:07:06]                      ^
[15:07:06] /Users/imochurad/__Development__/antlr3/Grammars/output/TestExprParser.java:395: cannot find symbol
[15:07:06] symbol  : variable dbg
[15:07:06] location: class TestExprParser
[15:07:06]          } finally {dbg.exitDecision(3);}
[15:07:06]                     ^
[15:07:06] /Users/imochurad/__Development__/antlr3/Grammars/output/TestExprParser.java:399: cannot find symbol
[15:07:06] symbol  : variable dbg
[15:07:06] location: class TestExprParser
[15:07:06]                  dbg.enterAlt(1);
[15:07:06]                  ^
[15:07:06] /Users/imochurad/__Development__/antlr3/Grammars/output/TestExprParser.java:403: cannot find symbol
[15:07:06] symbol  : variable dbg
[15:07:06] location: class TestExprParser
[15:07:06]                  dbg.location(11,11);
[15:07:06]                  ^
[15:07:06] /Users/imochurad/__Development__/antlr3/Grammars/output/TestExprParser.java:404: cannot find symbol
[15:07:06] symbol  : variable input
[15:07:06] location: class TestExprParser
[15:07:06]                  set8=input.LT(1);
[15:07:06]                       ^
[15:07:06] /Users/imochurad/__Development__/antlr3/Grammars/output/TestExprParser.java:405: cannot find symbol
[15:07:06] symbol  : variable input
[15:07:06] location: class TestExprParser
[15:07:06]                  if ( input.LA(1)==14||input.LA(1)==16 ) {
[15:07:06]                       ^
[15:07:06] /Users/imochurad/__Development__/antlr3/Grammars/output/TestExprParser.java:405: cannot find symbol
[15:07:06] symbol  : variable input
[15:07:06] location: class TestExprParser
[15:07:06]                  if ( input.LA(1)==14||input.LA(1)==16 ) {
[15:07:06]                                        ^
[15:07:06] /Users/imochurad/__Development__/antlr3/Grammars/output/TestExprParser.java:406: cannot find symbol
[15:07:06] symbol  : variable input
[15:07:06] location: class TestExprParser
[15:07:06]                      input.consume();
[15:07:06]                      ^
[15:07:06] /Users/imochurad/__Development__/antlr3/Grammars/output/TestExprParser.java:408: cannot find symbol
[15:07:06] symbol  : variable state
[15:07:06] location: class TestExprParser
[15:07:06]                      state.errorRecovery=false;
[15:07:06]                      ^
[15:07:06] 100 errors
[15:07:07] warning(138): TestExpr.g:0:1: grammar TestExpr: no start rule (no rule can obviously be followed by EOF)
[15:07:09] warning(138): TestExpr.g:0:1: grammar TestExpr: no start rule (no rule can obviously be followed by EOF)
sharwell commented 11 years ago

Try this one out: http://tunnelvisionlabs.com/downloads/antlr/2013-06-21-antlrworks-1.5.1-SNAPSHOT-complete-075bc6d.jar

imochurad commented 11 years ago

works like a charm! Thanks for your help!