help-bison
[Top][All Lists]
Advanced

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

Re: ftpcmd.y -- syntax error


From: Tomas Stanek
Subject: Re: ftpcmd.y -- syntax error
Date: Mon, 5 Apr 2004 19:26:47 +0200
User-agent: Mutt/1.3.28i

> 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]