delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1999/06/30/12:29:12.1

From: "Christopher Nelson" <paradox AT gye DOT satnet DOT net>
To: <djgpp AT delorie DOT com>
Subject: Re: Bison help
Date: Tue, 29 Jun 1999 17:46:55 -0600
Message-ID: <01bec289$ab778f00$LocalHost@thendren>
MIME-Version: 1.0
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}=-

- Raw text -


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