Grammar definition problem.

2005-03-21 Thread Atul Kulkarni
Hi All, I am facing problem in defining the following grammar for Bison. X -> letter { letter | digit }. here letter and digit are terminals and X is the non terminal symbol. I am not able to put this rule in the bison grammar form hence need some advice on this. in particular I am not able to

Re: Grammar definition problem.

2005-03-22 Thread Atul Kulkarni
Hey Laurence, Thanks! that was nice and simple, I should have go that :( earlier! Regards, Atul. On Mon, 21 Mar 2005 11:59:49 +0100 (MET), Laurence Finston <[EMAIL PROTECTED]> wrote: > On Mon, 21 Mar 2005, Atul Kulkarni wrote: > > > how do I put the OR part of the rule inco

Flex Problem, I did not find a list for Flex hence postin here.

2005-03-24 Thread Atul Kulkarni
. Update Your Account (Service) > 4. Re: %union errors that shouldn't be there (Laurence Finston) > > -- > > Message: 1 > Date: Tue, 22 Mar 2005 14:36:27 +0100 > From: Hans Aberg <[EMAIL PROTECTED]> > Subject: Re: Grammar definition problem. > To: Atul Kulkarn

Need Help in Shift Reduce Errors

2005-07-21 Thread Atul Kulkarni
All, I am facing a problem with the Grammar i am feeding to the Bison. It throws 2 shift reduce conflicts. Please help with this I am not able to resolve them. I am attaching my Grammar and Bison input that I created. The Input for Bison I created from the Grammar. /*---

Re: Need Help in Shift Reduce Errors

2005-07-22 Thread Atul Kulkarni
Well I would not really worry about them but one variant of Bison Yacc just does not generate output "c" code for this grammar. That's what worries me. Regards, Atul. On 7/22/05, Laurence Finston <[EMAIL PROTECTED]> wrote: > On Fri, 22 Jul 2005, Atul Kulkarni wrote: >