Re: bison and downwards compatibility

2006-10-24 Thread Joel E. Denny
On Tue, 24 Oct 2006, Joerg Hoffmann wrote: > lex.fct_pddl.c:1642: warning: implicit declaration of function ?fileno? Seems like you're missing #include . > scan-fct_pddl.y: In function ?load_fct_file?: > scan-fct_pddl.y:910: error: ?yyin? undeclared (first use in this function) yyin is defined

Re: Header file of a Bison parser

2006-10-24 Thread Joel E. Denny
On Tue, 24 Oct 2006, Pupeno wrote: > I have a Bison parser, parser.y, which generates a C source file, parser.c > and its header file, parser.h. > I want to put something in parser.h: the declaration/prototype of a function > that is in parser.y and ends up in parser.c. This is because this functi

Re: Header file of a Bison parser

2006-10-24 Thread Hans Aberg
[Replies cc Help-Bison] Why not write another header file? Also note that names starting with "_" are reserved for compiler implementation. Hans Aberg On 24 Oct 2006, at 18:31, Pupeno wrote: Hello, I have a Bison parser, parser.y, which generates a C source file, parser.c and its he

Re: no declared type error

2006-10-24 Thread Hans Aberg
[Replies cc Help-Bison.] You have the Bison static type system invoked, and somewhere a token or nonterminal does not have a type value, I would think. Hans Aberg On 24 Oct 2006, at 13:31, Hari wrote: Hi, I am trying to bison a parser.y file. I am unable to compile it as it shows.. "

Header file of a Bison parser

2006-10-24 Thread Pupeno
Hello, I have a Bison parser, parser.y, which generates a C source file, parser.c and its header file, parser.h. I want to put something in parser.h: the declaration/prototype of a function that is in parser.y and ends up in parser.c. This is because this function should be usable from other files

Re: bison and downwards compatibility

2006-10-24 Thread Joerg Hoffmann
Hi Bob, thanks for the quick answer. Well, now you mention it: right now I got for the first time an error for which I have absolutely no clue what to do, and which I could not resove after some (random) guessing. I just downloaded bison version 1.875 because that is what I used on a previo

Re: bison and downwards compatibility

2006-10-24 Thread Bob Rossi
On Tue, Oct 24, 2006 at 05:38:27PM +0200, Joerg Hoffmann wrote: > Dear Bison makers, > > First, thanks for your very useful tool. However, I have to say I'm > frustrated by the utter lack of downwards compatibility. Why is this > necessary? > > I'm working with code that originated in 1998. It

bison and downwards compatibility

2006-10-24 Thread Joerg Hoffmann
Dear Bison makers, First, thanks for your very useful tool. However, I have to say I'm frustrated by the utter lack of downwards compatibility. Why is this necessary? I'm working with code that originated in 1998. It has in the meantime been copied so often that it is impossible to revise al

no declared type error

2006-10-24 Thread Hari
Hi, I am trying to bison a parser.y file. I am unable to compile it as it shows.. " no declared type error" . I have searched for this error on net but could hardly get any help. Any suggestions? Thanks in advance -hari ___ help-bison@gnu.org http:/

Header of a Bison parser

2006-10-24 Thread Pupeno
Hello, I have a Bison parser, parser.y, which generates a C source file, parser.c and its header file, parser.h. I want to put something in parser.h: the declaration/prototype of a function that is in parser.y and ends up in parser.c. This is because this function should be usable from other files