From: Koen Deforche Newsgroups: comp.os.msdos.djgpp Subject: Re: yet another bison question Date: Fri, 23 May 1997 15:42:39 +0200 Organization: K.U.Leuven Message-ID: <33859ECF.1B7D@cs.kuleuven.ac.be> References: NNTP-Posting-Host: pruimpit.cs.kuleuven.ac.be Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Lines: 15 To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Precedence: bulk Gary R Sekinger wrote: > My problem is that I don't want to impose an order on the statements > within the block. I could use brute force and specify all 362880 (9!) > permeation's, but that method would really suck! A second idea was to > make all of the statements optional and then at the "EndGeneralBlock" > token check to make sure that they were all specified, but this also > seems like a hack. Is there an better way to do this? there isn't, the second method is the only sensible way to go around it with yacc(bison). Perhaps you can initialise all your stuff to default settings, so that the user does not have to specify them all? koen.