Re: %union errors

2008-12-05 Thread Vukki Starborn
May be your structures were defined in namespace? Or this may be some kind of include guards fail. General way to solve this: examine generated by bison code. If it would be seem ok, you can produce preprocessed code from it by running your compiler with special options ( -E for gcc). There you mus

Re: Bison complains about undefined reference of my own data type

2008-11-24 Thread Vukki Starborn
2008/11/24 sgaurelius <[EMAIL PROTECTED]> > > > Do you have any guide, on how to include a library to bison. I will search > it by myseld, but if you got somehting, it'd be useful. > > Maybe it would be worth to check also guides on your linker and compiler. Official bison manual you can find here

Re: Bison complains about undefined reference of my own data type

2008-11-23 Thread Vukki Starborn
What exactly say the compiler? If you get some undefined reference message on stage of compilation of bison output, then you must check if all needed definitions really included. If you get undefined reference message on linking stage, the solution usually is to add object file with implementation

Re: signed numeric literals

2008-09-18 Thread Vukki Starborn
Section 5.4 (Context dependent precedence) in the official manual ( http://www.gnu.org/software/bison/manual/html_mono/bison.html#Contextual-Precedence) contains the answer: Here is how %prec solves the problem of unary minus. First, declare a precedence for a fictitious terminal symbol named UMIN