Related articles |
---|
Interface between Parse Tree and translators kvrao@m-net.arbornet.org (1994-10-15) |
Re: Interface between Parse Tree and translators danhicks@aol.com (1994-10-21) |
Re: Interface between Parse Tree and translators marks@orb.mincom.oz.au (1994-10-19) |
Re: Interface between Parse Tree and translators kvrao@m-net.arbornet.org (1994-10-22) |
Newsgroups: | comp.compilers |
From: | kvrao@m-net.arbornet.org (Venkateswara Rao) |
Keywords: | parse, OOP, question |
Organization: | Compilers Central |
Date: | Sat, 15 Oct 1994 09:14:14 GMT |
Hi every body,
I am involved in a compiler project using OO methodology. I am facing the
following problem :
The parser reads a language and creates the parse tree. Now I need to
call translators of 4 other languages each of which has their CodeGen
functions which expect data in some form. So the xlators have to create
the required data structures out of parse tree and call codegen function
of the respective language. As the parse tree can not have any thing
specific to any language, how can I design the interface to all xlators
in "truly" object-oriented way?
Can anybody suggest a solution to cleanly define an interface between parse
tree and the translators?
Thanks in advance,
kvrao
--
Return to the
comp.compilers page.
Search the
comp.compilers archives again.