LL(1) C grammar

Christopher R Volpe volpe at camelback.crd.ge.com
Wed Jun 19 22:17:48 AEST 1991


In article <18959 at prometheus.megatest.UUCP>, djones at megatest.UUCP (Dave
Jones) writes:
|>Huh? There's nothing that can be done with an LL parser
|>that can't be done with an LR parser. What do you mean by "interpretation
|>versus compilation, incremental parser building etc"?
          
Isn't is just much more convenient to deal with a LR grammar? It's true
that any LR(1) grammar can be converted to an equivalent LL(1) grammar 
that accepts (generates) the same language, but (to me) they are very unnatural
looking and it's harder to tell what's going on. I've LL(1)-ized
grammars before
and the resulting productions don't look much like anything one could associate
meaningful and intuitive action routines to. Am I missing something?

==================
Chris Volpe
G.E. Corporate R&D
volpecr at crd.ge.com



More information about the Comp.lang.c mailing list