LL(1) grammar and LL(2) grammar

Felix Mish <felixmish@usa.net>
17 Oct 1998 01:48:56 -0400

          From comp.compilers

Related articles
LL(1) grammar and LL(2) grammar felixmish@usa.net (Felix Mish) (1998-10-17)
Re: LL(1) grammar and LL(2) grammar tc@charlie.cns.iit.edu (Thomas W. Christopher) (1998-10-18)
Re: LL(1) grammar and LL(2) grammar os@cs.tu-berlin.de (Olaf Stoyke) (1998-10-21)
Re: LL(1) grammar and LL(2) grammar mravirala@my-dejanews.com (1998-10-21)
| List of all articles for this month |
From: Felix Mish <felixmish@usa.net>
Newsgroups: comp.compilers
Date: 17 Oct 1998 01:48:56 -0400
Organization: Compilers Central
Keywords: LL(1), question

Hello everyone,
I have such a production which is obviously not a
LL(1) gramar.


factor:
                TOK_ID
                | TOK_ID "\(" parameters "\)"
                | TOK_NUM
                | "\(" expression "\)"
                | TOK_NOT factor
                | TOK_ID "\[" expression "\]"


But is it possible to make a LL(1) grammar that accepts the same
language?


Post a followup to this message

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