Wanted: Lex/yacc or equiv for ANSI C

dcummings@trc.amoco.com (Dan L. Cummings)
Fri, 27 Sep 1991 13:31:41 GMT

          From comp.compilers

Related articles
Wanted: Lex/yacc or equiv for ANSI C dcummings@trc.amoco.com (1991-09-27)
| List of all articles for this month |

Newsgroups: comp.compilers,comp.unix.questions,comp.lang.c
From: dcummings@trc.amoco.com (Dan L. Cummings)
Keywords: yacc, lex, C, question
Organization: Amoco Production Company, Tulsa Research
Date: Fri, 27 Sep 1991 13:31:41 GMT

Are there a versions/variants of lex & yacc that generate ANSI C?


Dan <<<< dcummings@trc.amoco.com
[Most versions of yacc and lex get all the code from a template file,
generating only the contents of the tables. The flex and bison
skeletons have ifdefs for an ANSI compiler. A quick look at the AT&T yacc
parser suggests that it'd be easy enough to ansify it, probably without
having to change yacc at all. -John]
--


Post a followup to this message

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