lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Simon Willnauer" <simon.willna...@googlemail.com>
Subject Re: ant javacc-QueryParser
Date Sun, 23 Jul 2006 13:02:21 GMT
I did run the ant task after updating to your changes and I do have a
difference between the head and the generated file. But this is also
missing in revision < 424708.

Index: QueryParser.java
===================================================================
--- QueryParser.java    (revision 424728)
+++ QueryParser.java    (working copy)
@@ -1239,6 +1239,7 @@
   final private void jj_rescan_token() {
     jj_rescan = true;
     for (int i = 0; i < 1; i++) {
+    try {
       JJCalls p = jj_2_rtns[i];
       do {
         if (p.gen > jj_gen) {
@@ -1249,6 +1250,7 @@
         }
         p = p.next;
       } while (p != null);
+      } catch(LookaheadSuccess ls) { }
     }
     jj_rescan = false;
   }


On 7/23/06, Daniel Naber <lucenelist2005@danielnaber.de> wrote:
> Hi,
>
> as I cannot get "ant javacc-QueryParser" working I manually applied the
> changes from my latest commit to QueryParser.java.

Did you set the property in your common-build.xml?
If you use gentoo or debian and use emerge or apt-get to install
javacc the build file does not work. Package manager might change
directory structure. Just download javacc and set your path manually.

regards Simon

---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-dev-help@lucene.apache.org


Mime
View raw message