Menu

BISON: Stray ';' after yyparse decleration.

Help
2006-11-21
2012-07-26
  • Nobody/Anonymous

    Hi.

    I can't believe that I am the first person
    to notice this. I am changing from cygwin
    to Mingw and installed bison 2.1 from gnuwin32
    when I compiled the code built by bison
    it complained about a '{' at file scope.

    Checking the code sure enough there was
    a stray ';' on the next line to yyparse().

    It was not there in the previous version I
    was using 1.875b and looking at the code
    it should not be there. Anyone got any
    thoughts. (About the problem not anything
    else).

    BTW: Workroung is to define YYPARSE_PARAM as
    a dummy thing and the problem goes away.

    Thanks.
    Eamon.

    /----------.
    | yyparse. |
    `----------
    /

    ifdef YYPARSE_PARAM

    if defined (STDC) || defined (__cplusplus)

    int yyparse (void *YYPARSE_PARAM)

    else

    int yyparse (YYPARSE_PARAM)
    void *YYPARSE_PARAM;

    endif

    else / ! YYPARSE_PARAM /

    if defined (STDC) || defined (__cplusplus)

    int
    yyparse (void)

    else

    int
    yyparse ()
    ;

    endif

    endif

    {

     
    • Nobody/Anonymous

      For that reason i'm not usung 2.1, this is really very annoying. But even if I fix this manually 2.1 still seem to crash for some reason, I haven't investigated why though.

       
MongoDB Logo MongoDB