[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Fwd: Parser generated on Bison 1.5 (and later) does not start a parsing
From: |
John P. Hartmann |
Subject: |
Fwd: Parser generated on Bison 1.5 (and later) does not start a parsing |
Date: |
Tue, 24 Aug 2010 16:01:10 +0200 |
---------- Forwarded message ----------
From: John P. Hartmann <address@hidden>
Date: 24 August 2010 15:59
Subject: Re: Parser generated on Bison 1.5 (and later) does not start a parsing
To: Baruch Gudesblat <address@hidden>
Add %error-verbose to the declarations section and set yydebug=1
before calling the parser.
j.
On 24 August 2010 13:07, Baruch Gudesblat <address@hidden> wrote:
> Hello, all.
>
> I hope some one already faced this problem in past. Who can help, please?
>
>
> My Verilog parser, generated by bison does not start a parse process. It
> happend in bison 1.50, 1.875c and latest 2.4.3
> But it works fine, when generated with bison 1.35 !!!
> What has changed from 1.35 to 1.50?
>
> *The problem:
> *
> Parser bison:
>
> #define YYTRACE(str) fprintf(stderr, " <Yacc>%s\n", str);
> %%
> source_text :
> { YYTRACE("sorce_text:");
> $$ = vl_description = vl_create_desc("stdin"); }
> | source_text description {
> YYTRACE("source_text: source_text description"); }
> ;
> description : module
> { YYTRACE("description: module"); }
> | primitive
> { YYTRACE("description: primitive"); }
> ;
> ...
> ...
>
>
> Input file:
> module upi_top ;
> endmodule
>
>
> When the parser runs it just print:
> <Yacc>sorce_text:
>
> and calls to *yyerror* procedure, when error_msg == "syntax error" and
> yytext == "module"
>
>
> I would be very thankful if some one could advise me how to start to debug
> this case*.*
>
>
>
> --
> -Thanks
> -Baruch
> _______________________________________________
> address@hidden http://lists.gnu.org/mailman/listinfo/help-bison
>