help-bison
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: concatenating string into $$


From: Tom Jackson
Subject: Re: concatenating string into $$
Date: 27 Feb 2004 16:01:36 -0800

 
> On Fri, 2004-02-27 at 10:53, Hans Aberg wrote:
> > You can write it as you suggest, in one single statement:
> >   ifcmd:
> >       IFCMD ARGUMENT ENDCMD statements ENDIF {...}

I got your second example to work, and the following:
ifcmd:
        IFCMD ARGUMENT ENDCMD 
        {
          printf("\nif %s {\n ", $2)
        }
        statements ENDIF
        {
          printf("\n}");
        }
        ;

Both validate the if command. Now on to figuring out
if-elseif-...-else-endif

tom jackson





reply via email to

[Prev in Thread] Current Thread [Next in Thread]