|
From: Gabriel G. <gr...@LE...> - 2009-11-23 21:47:15
|
Hello everyone, I have a question about recompiling the parser's source with JavaCC and the .jj files found on the CVS. I have checked out the latest version (0.9.6-SNAPSHOT) and it works just fine. When I recompile the parser using the .jj files found in src/main/javacc and replace the files found in target/generate-sources/javacc, I always EmptyStackException errors with the same test code that was working just fine before. The exact error I'm getting is: Exception in thread "main" java.util.EmptyStackException at java.util.Stack.peek(Stack.java:85) at java.util.Stack.pop(Stack.java:67) at com.steadystate.css.parser.CSSOMParser$CSSOMHandler.endDocument(CSSOMParser.java:266) at com.steadystate.css.parser.AbstractSACParser.handleEndDocument(AbstractSACParser.java:488) at com.steadystate.css.parser.SACParserCSS2.styleSheet(SACParserCSS2.java:51) at com.steadystate.css.parser.AbstractSACParser.parseStyleSheet(AbstractSACParser.java:320) at com.steadystate.css.parser.CSSOMParser.parseStyleSheet(CSSOMParser.java:139) at CssTest.main(CssTest.java:24) Is there anything that I'm doing wrong? Is there a special procedure to follow to recompile the parser? Thanks a lot for the help, Gabriel |