|Simple yacc translator kanagala@Cadence.COM (Raja Kanagala) (1999-11-19)|
|Re: Simple yacc translator email@example.com (Alan Donovan) (1999-11-23)|
|Re: Simple yacc translator firstname.lastname@example.org (Zalman Stern) (1999-11-28)|
|From:||Zalman Stern <email@example.com>|
|Date:||28 Nov 1999 01:37:34 -0500|
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 www.antlr.org , especially http://www.antlr.org/doc/streams.html
and the HTML grammar at http://www.antlr.org/grammars/HTML/ .
On the other hand, this particular problem is not hard to solve using the
lex/yacc technique the moderator already described.
Return to the
Search the comp.compilers archives again.