Re: [htdig3-dev] Re: [htdig] SYNTAXERROR - bug?


Geoff Hutchison (ghutchis@wso.williams.edu)
Tue, 16 Feb 1999 13:26:22 -0400


>My stab at it would be
>
> expected ')' instead of 'foo'
>
>for the first case, and
>
> expected a word instead of 'foo'
>
>for the second. Makes sense?

These would make sense. This is an untest patch, but I assume it works
-Geoff

Index: parser.cc
===================================================================
RCS file: /opt/htdig/cvs/htdig3/htsearch/parser.cc,v
retrieving revision 1.6
diff -c -3 -p -r1.6 parser.cc
*** parser.cc 1998/12/06 18:45:10 1.6
--- parser.cc 1999/02/16 18:20:07
*************** Parser::factor(int output)
*** 155,160 ****
--- 155,163 ----
        else
        {
            valid = 0;
+ error = 0;
+ error << " ')' instead of '" << current->word.get();
+ error << '\'';
        }
      }
      else if (lookahead == WORD)
*************** Parser::factor(int output)
*** 168,173 ****
--- 171,179 ----
      else
      {
        valid = 0;
+ error = 0;
+ error << "expected a word instead of '" << current->word.get();
+ error << '\'';
      }
  }

------------------------------------
To unsubscribe from the htdig3-dev mailing list, send a message to
htdig3-dev@htdig.org containing the single word "unsubscribe" in
the SUBJECT of the message.



This archive was generated by hypermail 2.0b3 on Tue Feb 16 1999 - 10:49:23 PST