Re: shift/reduce problem

Seima <seimarao@gmail.com>
Thu, 30 Dec 2010 19:54:44 -0800 (PST)

          From comp.compilers

Related articles
shift/reduce problem csnews77@gmail.com (JohnSmith) (2010-12-02)
Re: shift/reduce problem haberg-news@telia.com (Hans Aberg) (2010-12-03)
Re: shift/reduce problem csnews77@gmail.com (JohnSmith) (2010-12-03)
Re: shift/reduce problem haberg-news@telia.com (Hans Aberg) (2010-12-03)
Re: shift/reduce problem gene.ressler@gmail.com (Gene) (2010-12-03)
Re: shift/reduce problem chakaram@auth.gr (Chariton Karamitas) (2010-12-05)
Re: shift/reduce problem seimarao@gmail.com (Seima) (2010-12-30)
Re: shift/reduce problem kaz@kylheku.com (Kaz Kylheku) (2011-10-20)
| List of all articles for this month |

From: Seima <seimarao@gmail.com>
Newsgroups: comp.compilers
Date: Thu, 30 Dec 2010 19:54:44 -0800 (PST)
Organization: Compilers Central
References: 10-12-004
Keywords: yacc, parse
Posted-Date: 30 Dec 2010 23:02:51 EST

On Dec 3, 1:29 am, JohnSmith <csnew...@gmail.com> wrote:


> I have to parse the following string like this
>
> "(input i, j, k, input u, v, w)"


lhs: '(' input_lhs ')'
      ;


input_lhs: "input" ID
                  | input_lhs ',' ID
                  | input_lhs ',' "input" ID
                  ;


Does this work for you?


Regards,
Seima Rao.



Post a followup to this message

Return to the comp.compilers page.
Search the comp.compilers archives again.