Re: java parsing problem
22 Oct 2000 01:21:41 -0400

          From comp.compilers

Related articles
java parsing problem (2000-10-19)
Re: java parsing problem (2000-10-22)
Re: java parsing problem (Joachim Durchholz) (2000-10-22)
Re: java parsing problem (Ivan Naumov) (2000-10-22)
| List of all articles for this month |

Newsgroups: comp.compilers
Date: 22 Oct 2000 01:21:41 -0400
Organization: - 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, It is more
top-down friendly.

Post a followup to this message

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