delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/05/23/17:05:36

From: Koen Deforche <deforche AT cs DOT kuleuven DOT ac DOT be>
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: <cnT9j5G00WBLE3fkpZ AT andrew DOT cmu DOT edu>
NNTP-Posting-Host: pruimpit.cs.kuleuven.ac.be
Mime-Version: 1.0
Lines: 15
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

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.

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019