more code completion fun!
Daniel Berlin
dberlin at redhat.com
Tue Mar 13 15:26:50 GMT 2001
Heiko Leberer <Heiko_Leberer at non.agilent.com> writes:
> christopher j bottaro wrote:
> >
>
> I'm not familiar with ANTLR, but since it looks quite like to yacc with
> some additional features, so I comment on what I think you're doing.
It's not, at all.
YACC is LALR(1), ANTLR is LL(k).
There is a huge difference in how you write a grammar for an LALR(1)
generator, and how you write one for an LL(k) generator
>
> Those ()? and ()* are great to save some place in writing, but
> apparently they do not lead to carefully designed rules.
>
> How should the parser generator differ between
>
> "++ident" as result from "unary_op unary_op postfix_expr"
>
> and
>
> "++ident" as result from "INC postfix_expr"
Through the k lookahead.
I'll stop here, the rest of your commentary just doesn't apply,
because ANTLR is not LALR.
--Dan
-
to unsubscribe from this list send an email to kdevelop-request at kdevelop.org with the following body:
unsubscribe »your-email-address«
More information about the KDevelop
mailing list