>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
[EMAIL PROTECTED] containing the single word "unsubscribe" in
the SUBJECT of the message.

Reply via email to