From: "Christopher Nelson" To: Subject: Re: Bison help Date: Tue, 29 Jun 1999 17:46:55 -0600 Message-ID: <01bec289$ab778f00$LocalHost@thendren> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 4.71.1712.3 X-MimeOLE: Produced By Microsoft MimeOLE V4.71.1712.3 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);} > that only works if you know specifically what functions you're looking for. if you wanted to do a more general solution (like the one in the multi-calc example) it won't work. especially because you may have type conflicts. -={C}=-