Mail Archives: djgpp/2001/03/06/15:36:33
Kai Dietrich <toepferei DOT dietrich AT t-online DOT de> wrote:
> Hi!
> Is there a QBasic like interpreter for the C (C++?) language written
> with GCC aviable (with sourcecode)? If not, do you think it is possible
> to write one (I'm thinking heavily about this and I already had some
> ideas how to realize it)?
Writing a C interpreter is one of the longest standing open projects
listed by the GNU project, on their website. AFAIK, no progress has
been achieved in a long while.
By nature, C is not a very interpreter-friendly language. Elements
that cause this include the preprocessor, complicated data structures,
and recursive function calls. If you really want to dig into this,
I'd recommend a text book on compiler construction and the
comp.compilers newsgroup (they deal with interpreters, too, despite of
the name).
--
Hans-Bernhard Broeker (broeker AT physik DOT rwth-aachen DOT de)
Even if all the snow were burnt, ashes would remain.
- Raw text -