bug-bison
[Top][All Lists]
Advanced

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

Re: "Syntax error before ," in generated .c file


From: Gizmotechspert
Subject: Re: "Syntax error before ," in generated .c file
Date: Tue, 6 Mar 2012 01:52:28 -0800 (PST)



Paul Eggert wrote:
> 
> On 03/05/2012 05:49 AM, Gizmotechspert wrote:
>> 
>> No clue what's going wrong or how to fix this issue.
> 
> Could you please submit a complete, self-contained test case
> so that we can reproduce the problem?  It doesn't have to be
> small, though small is nice.  I'm afraid that we can't debug
> it merely from the little snippet you sent.
> 
> 
> 

Find attached:
1. Lex file :  http://old.nabble.com/file/p33449796/lexer_test.l
lexer_test.l 
2. Yacc file:  http://old.nabble.com/file/p33449796/parser_test.y
parser_test.y 
3. Main :  http://old.nabble.com/file/p33449796/main.c main.c 

Compilation steps:
$ bison -d -y parser_test.y
$ flex -l lexer_test.l
$ gcc lex.yy.c y.tab.c main.c

Bug observed in:
$ bison --version
bison (GNU Bison) 1.875
Written by Robert Corbett and Richard Stallman.

Copyright (C) 2002 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
----
Any help would be greatly appreciated. Please do not ask me to use a higher
version of bison as its against company legal policies.

P.S: Bug unreproducible in bison v2.3

Thanks in advance :-)
-- 
View this message in context: 
http://old.nabble.com/%22Syntax-error-before-%2C%22-in-generated-.c-file-tp33443573p33449796.html
Sent from the Gnu - Bison - Bugs mailing list archive at Nabble.com.


reply via email to

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