Re: Simple yacc translator

Zalman Stern <zalman@netcom11.netcom.com>
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 adonovan@imerge.co.uk (Alan Donovan) (1999-11-23)
Re: Simple yacc translator zalman@netcom11.netcom.com (Zalman Stern) (1999-11-28)
| List of all articles for this month |
From: Zalman Stern <zalman@netcom11.netcom.com>
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
through."


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.


-Z-


Post a followup to this message

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