What does error message "fatal error: start symbol grammar does not derive any sentence" mean?

2009-08-04 Thread joe
Thanks for your help. I have attached the latest listing of the program in question. When I run Bison now, then the messages I get from that are... parse.y: warning: 8 useless nonterminals and 30 useless rules parse.y:52.1-7: fatal error: start symbol grammar does not derive any sentence I believ

Re: What does error message "fatal error: start symbol grammar does not derive any sentence" mean?

2009-08-04 Thread Tomas Crhak
Hi joe, add another rule to exp, eg exp: NUMBER { $$ = convert_str_to_int($1); } | /* you rules */ otherwise exp cannot be derived as all the other rules involve exp itself. -tomas On Tue, 2009-08-04 at 22:12 +0100, j...@garveydesign.com wrote: > Thanks for your help. > I have attached the