I am trying to make a translator from a language (infix
notation
calculator, for example) to C (or C++).
It really depends how big you input language is. If it is small, you
can just write out in the .y grammar action grammar, perhaps using
some macro language, like M4 as an intermediate.
For bigger input languages, you may want to consult the Usenet
newsgroup comp.compilers and its FAQ, published there, monthly, for
better replies.
Some compilers, such as the GHC and some C++ compilers, have in the
past used the method to write C code as output.
There is also a specialized tool:
http://codeworker.free.fr/
Hans Aberg
_______________________________________________
[email protected] http://lists.gnu.org/mailman/listinfo/help-bison