|Interface between Parse Tree and translators email@example.com (1994-10-15)|
|Re: Interface between Parse Tree and translators firstname.lastname@example.org (1994-10-21)|
|Re: Interface between Parse Tree and translators email@example.com (1994-10-19)|
|Re: Interface between Parse Tree and translators firstname.lastname@example.org (1994-10-22)|
|From:||email@example.com (Venkateswara Rao)|
|Keywords:||parse, OOP, question|
|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,
Return to the
Search the comp.compilers archives again.