Re: java parsing problem

LLkParsing@aol.com
22 Oct 2000 01:21:41 -0400

          From comp.compilers

Related articles
java parsing problem shirleytemple@my-deja.com (2000-10-19)
Re: java parsing problem LLkParsing@aol.com (2000-10-22)
Re: java parsing problem joachim_d@gmx.de (Joachim Durchholz) (2000-10-22)
Re: java parsing problem Ivan_Ivan_Ivan@yahoo.com (Ivan Naumov) (2000-10-22)
| List of all articles for this month |

From: LLkParsing@aol.com
Newsgroups: comp.compilers
Date: 22 Oct 2000 01:21:41 -0400
Organization: Deja.com - Before you buy.
References: 00-10-146
Keywords: parse

> Primary:
> PrimaryNoNewArray
> ArrayCreationExpression
>
> PrimaryNoNewArray
> ...
> FieldAccess
> ...
>
> FieldAccess
> Primary . Identifier
> ...


> Obviously this is a loop. I dont really know what I'm talking about
> here, but is this because the BNF is LR and I am using an LL approach?
> Is this left-recursion?


This is indirect left-recursion. What you have to do is hoist up the
offending production by substitution, and then remove the resulting
direct left-recursion. Easier would be to just get the softcopy of the
java grammar from the Sun Java site, www.javasoft.com. It is more
top-down friendly.


Post a followup to this message

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