[ee122] Question abt part B

Vern Paxson vern at icir.org
Sat Sep 22 16:22:32 PDT 2007

> Are we allowed to use Yacc?


> And just so I know what I'm getting myself into if I try to learn its
> use, how difficult is it to learn?

If you haven't used a declarative programming language before, it takes
some getting used to, and debugging problems in the grammar can be confusing
until you absorb its model of precedence and just what a "shift/reduce
conflict" means.

In general, I wouldn't try biting it off now for what you'll be turning
in on Wednesday.  Also, yacc is best suited for higher-level grammars; the
low-level stuff (like describing Absolute-Path etc.) is best done with a
tool like lex/flex, or directly in C.


More information about the ee122 mailing list