[prog] Yacc - double errors (EOF detection)

Jimen Ching jching at flex.com
Tue Feb 10 19:44:05 EST 2004


On Wed, 11 Feb 2004, Sue Stones wrote:
>I still feel no wiser about why I would want to use yacc though, so I may
>not do any more after this is done.

Yacc is convenient if your grammar can be easily described with BNF
(Baukus Nau Format(sp?)).  But if your grammar is complex, like C++, then
yacc simply can't handle it.  This is why the GCC developers re-wrote the
C++ parser from scratch without yacc.  For simple things, though, it beats
writing the entire parser by hand.

--jc
-- 
Jimen Ching (WH6BRR)      jching at flex.com     wh6brr at uhm.ampr.org


More information about the Programming mailing list