Whenever I've had these - its almost always because I've chosen a token that used as a #define (or something similar) in an include .h file..
Eg. using TRUE, or FALSE will almost always give problems... On Monday 04 February 2008 15:34:07 Zhe Chen wrote: > Hello, > I want to build a simple compiler using Flex/Bison, which can parse > expressions into syntactic trees. However, I met a problem as following, > when I try to compile the source files: > > calc.tab.h:60: error: expected '=', ',', ';', 'asm' or '__attribute__' > before '*' toke > > I have attached the three small source files in the email. Thank you for > compiling them and tell me where is the error. Thank you very much! > > Z. Chen -- Mike Aubury Aubit Computing Ltd is registered in England and Wales, Number: 3112827 Registered Address : Murlain Business Centre, Union Street, Chester, CH1 1QP _______________________________________________ help-bison@gnu.org http://lists.gnu.org/mailman/listinfo/help-bison