<div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr">> everyone should write for their first compiler in Pascal for a<br>> simple language and no cheating using YACC.  You need to write the whole<br>> thing if you want to understand how parsing really works.</div><div dir="ltr"><br></div><div>Yacc certainly makes it easier to write parsers for big grammars, but it's far from cheating. You need to know a lot more about parsing to use Yacc than you need to roll your own. </div><div><br></div><div>Hand parsing of a tiny grammar is almost a  necessary step on the way to understanding Yacc. But I think hand-building the whole parser for a compiler is unnecessary torture--like doing trigonometry with log tables.</div><div><br></div><div>Doug</div></div></div></div></div></div>