Naive question from a layman

GB <>
14 Mar 1997 00:21:17 -0500

          From comp.compilers

Related articles
Naive question from a layman (GB) (1997-03-14)
Re: Naive question from a layman (John Lilley) (1997-03-16)
| List of all articles for this month |

From: GB <>
Newsgroups: comp.compilers
Date: 14 Mar 1997 00:21:17 -0500
Organization: Harvard University, Cambridge, Massachusetts
Keywords: parse, question, yacc

Hello. I'm not at all familiar with the field of compiler
design, so the following question may come across as rather

It occurred to me that it would be instructive to read the output of
yacc for a simple grammar I'm working with, but in fact I found the
generated code impenetrable. This is, in retrospect, not terribly
surprising, since readability by humans was surely not a concern of
those who implement yacc. I still wonder, though, is there any
yacc-like program out there that will produce more legible code? (I
imagine such a program would be useful for little else other than
didactic purposes).

[If you want to see the parser tables, the y.output file is a reasonably
readable representation. -John]


Post a followup to this message

Return to the comp.compilers page.
Search the comp.compilers archives again.