[TUHS] What would early alternatives to C have been?

Charles H. Sauer sauer at technologists.com
Mon Mar 10 12:28:01 AEST 2025


[While walking 5 miles through the snow …]

> On Mar 9, 2025, at 9:03 PM, Douglas McIlroy <douglas.mcilroy at dartmouth.edu> wrote:
> 
> > everyone should write for their first compiler in Pascal for a
> > simple language and no cheating using YACC.  You need to write the whole
> > thing if you want to understand how parsing really works.
> 
> 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. 
> 
> 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.
> 
> Doug

In 1971 compiler construction course at UT-Austin, we had to use CDC Fortran to build a compiler for a subset of Algol 60. Undergraduates used punch cards and RJE to the 6600/6400 shared by all but the privleged few.

Charlie

--
voice: +1.512.784.7526       e-mail: sauer at technologists.com <mailto:sauer at technologists.com>           
fax: +1.512.346.5240         web: https://technologists.com/sauer/ <http://technologists.com/sauer/>
Facebook/Google/LinkedIn/mas.to: CharlesHSauer

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.tuhs.org/pipermail/tuhs/attachments/20250309/f93d2ea7/attachment.htm>


More information about the TUHS mailing list