Path: utzoo!attcan!uunet!lll-winken!netsys!cucstud!lcain
From: lcain@cucstud.UUCP (Leroy Cain)
Newsgroups: comp.databases
Subject: Re: YACC for SQL the code.
Summary: The problem, and Thanks
Keywords: YACC,SQL,source
Message-ID: <260@cucstud.UUCP>
Date: 6 Jun 88 00:43:13 GMT
References: <253@cucstud.UUCP> <11799@mimsy.UUCP>
Organization: Columbia Union College; Takoma Park, MD 20912
Lines: 25

In article <11799@mimsy.UUCP>, timos@mykines (Timos Sellis) writes:
> There is a small problem in Leroy's code. At least when I tried
> to use it in our machines (SUN 3's, VAX). To make it work change
> the number 100 in the RWORDS entry in file rws.h to 99, that is
> the line should be
> 	#define RWORDS 99
> 
> With that change the programs compile and work very well!
> 
> Thanks Leroy!

Thanks for pointing that out I thought it might be something like that.
The problem springs from the fact that I am using a binary search, you
can see why getting the wrong number would cause problems.  As I remember
I kept messing myself up every time I added a new reserved word.  The
version I distributed to the net relies on tmprws.h and seems to work.

Another problem comes form rerunning the ed? script.  If you have problems,
clear everything up and do a make from scatch.  I have switch to sed script
on my current work, and am getting better results.

-------------
MS-DOS Just say NO!!!!!			      OS/2 Why??????
Leroy Cain;      Columbia Union College;      Mathematical Sciences Department
7600 Flower Ave. WH406;  	              Takoma Park, Md 20912
(301) 891-4172				      netsys!cucstud!lcain