help-bison
[Top][All Lists]
Advanced

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

RE: ftpcmd.y -- syntax error


From: Jacques Dejean
Subject: RE: ftpcmd.y -- syntax error
Date: Mon, 5 Apr 2004 13:42:14 -0400

Hello Tomas,

When I either remove the equal (=) sign or place it in quotes ('='), the
command "bison -y ftpcmd.y" runs without errors.

However, since I am running the command -- "rpm --rebuild
wu-ftpd-2.6.1.src.rpm", I don't have the opportunity to modify "ftpcmd.y"
before the build process fails.  

Do you have any suggestions on how to get around it?

Thanks for your input.

Regards,
Jacques V. Dejean
Lead Systems Administrator, CSA - HPUX
Alliance Entertainment 
(v) 954-255-4344


-----Original Message-----
From: Tomas Stanek [mailto:address@hidden 
Sent: Monday, April 05, 2004 1:27 PM
To: Jacques Dejean
Cc: 'address@hidden'
Subject: Re: ftpcmd.y -- syntax error


> ftpcmd.y:197.9: syntax error, unexpected "="

> The code portion in "ftpcmd.y" is --
>     194
>     195 cmd_list:       /* empty */
>     196     | cmd_list cmd
>     197         =       {
>     198             fromname = (char *) NULL;
>     199             restart_point = 0;
>     200         }
>     201     | cmd_list rcmd
>     202     ;

I guess the problem is in unexpected "="

I may be wrong, but I'm not aware of any "rule: rules|tokens = { code }"
syntax.

try

cmd_list:       /* empty */
        | cmd_list cmd
        {
                fromname = (char *) NULL;
                restart_point = 0;
        }

        | cmd_list rcmd
        ;




reply via email to

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