2009-07-06

hll-to-hll projects

6.7:
--. the search to help me build an adda -> c translator:
. can we find an {ada, pascal} to c translator?
. also, a conversion either way might be helpful (eg, c->pascal):
c2pas
. and how about lisp to c?
reminds that I may find python to c written in python
. actually, ...

. the primary goal for adda's tool is to find some way of
translating things that are said my way
into things that are understood with common tools .
. c is the hll (high-level lang) that is recognized everywhere;
so, the easiest compiler translates adda to c .
. c is notorious for not being well defined
or otherwise not being easy to translate into another lang;
so, one goal adda does not have
is trying to reuse c code by translating into adda;
rather, adda simply has to find the safe, understandable parts of c,
and map adda`lang to those parts .

. rather than try to hand-translate similar projects,
and adapt them to the needs of adda's toolset,
I may be better off just boning up on hand-crafted compilers
(Patrick Terry` programming language translation)
and using the ideas from that (conveyed in straightforward Pascal code)
to create code specifically for adda`tools .

. some of the things I did for etree parsing
and the string pkg (pascal code)
may be easily convertable to c;
although the etree lang is not exactly what adda should be
(it used precidence rather than smart type inferencing) .

1 comment:

  1. 12.8.25: todo.adda/
    translate to adda for absorbing new code:
    . with python's c parser,
    consider translating c to adda too .
    . once you have adda2obj'c accomplished,
    consider designing the inverse too .
    . this would not only reuse obj'c code for
    use in teaching obj'c,
    but would also help with clarifying and absorbing
    new obj'c code .

    ReplyDelete