Re: Simple yacc translator

Zalman Stern <>
28 Nov 1999 01:37:34 -0500

          From comp.compilers

Related articles
Simple yacc translator kanagala@Cadence.COM (Raja Kanagala) (1999-11-19)
Re: Simple yacc translator (Alan Donovan) (1999-11-23)
Re: Simple yacc translator (Zalman Stern) (1999-11-28)
| List of all articles for this month |

From: Zalman Stern <>
Newsgroups: comp.compilers
Date: 28 Nov 1999 01:37:34 -0500
Organization: MindSpring Enterprises
References: 99-11-110 99-11-132
Keywords: tools

I hate to answer a tool question by suggesting a different tool, but
Antlr has a pretty slick mechanism for letting you specify the two
different parts of the file as separate languages and composing
them. It also has a special pass through mode that is sort of like
"parse everything that matches this grammar and pass everything else

See , especially
and the HTML grammar at .

On the other hand, this particular problem is not hard to solve using the
lex/yacc technique the moderator already described.


Post a followup to this message

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