From ghutchis@wso.williams.edu Tue Feb 16 11:23:25 1999 Date: Tue, 16 Feb 1999 13:26:22 -0400 From: Geoff Hutchison To: htdig3-dev@htdig.org Cc: htdig3-dev@htdig.org Subject: Re: [htdig3-dev] Re: [htdig] SYNTAXERROR - bug? >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.