delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1999/06/27/17:50:29

Message-ID: <3776932E.7CBB5EEC@unb.ca>
From: Endlisnis <s257m AT unb DOT ca>
Organization: Nortel Networks
X-Mailer: Mozilla 4.51 [en] (Win98; U)
X-Accept-Language: en
MIME-Version: 1.0
Newsgroups: comp.os.msdos.djgpp
Subject: Re: Bison help
References: <3775E3B1 DOT EC5991C AT hotmail DOT com>
Lines: 18
Date: Sun, 27 Jun 1999 21:09:34 GMT
NNTP-Posting-Host: 209.226.124.235
X-Trace: news20.bellglobal.com 930517774 209.226.124.235 (Sun, 27 Jun 1999 17:09:34 EDT)
NNTP-Posting-Date: Sun, 27 Jun 1999 17:09:34 EDT
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

Denis Lamarche wrote:

> I am trying to get bison to accept multiple parameter functions.  Does
> anyone know how to do this?  I got single params to wolk by looking at
> the calc exemple in the info files, but multiple doesnt work that way.

Couldn't you just do something like this:

exp:  FUNC2 '(' exp ',' exp ')'  {$$ = func2($3,$5);}


--
     (\/) Endlisnis (\/)
          s257m AT unb DOT ca
          Endlisnis AT HotMail DOT com
          ICQ: 32959047


- Raw text -


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