Related articles |
---|
multi-language parsing by using yacc pliang@msmail4.HAC.COM (Peter Liang) (1995-08-13) |
Re: multi-language parsing by using yacc simmons@bnr.ca (steve (s.s.) simmons) (1995-08-17) |
Re: multi-language parsing by using yacc erik@kroete2.freinet.de (1995-08-21) |
Re: multi-language parsing by using yacc ctv@cs.vu.nl (Cees Visser) (1995-08-21) |
Re: multi-language parsing by using yacc bobduff@world.std.com (1995-08-21) |
multi-language parsing by using yacc 75066.3204@CompuServe.COM (Carl Barron) (1995-08-22) |
Newsgroups: | comp.compilers |
From: | Peter Liang <pliang@msmail4.HAC.COM> |
Keywords: | yacc, question |
Organization: | Hughes Aircraft Company |
Date: | Sun, 13 Aug 1995 23:48:07 GMT |
Does anyone have experience using yacc to specifiy several grammars
in one parser application for parsing different languages (files)?
In other words, can I create multi-instances of parsers by using yacc?
Does yacc++ help?
Thanks in advance
Peter
[There's two basic approaches. Either hack on the yacc output and make two
parsers with different symbol names, or else glom the two grammars together
with a fake initial token to tell them apart. -John]
--
Return to the
comp.compilers page.
Search the
comp.compilers archives again.