Meta language?

Mihai Christodorescu <mihai@cs.wisc.edu>
14 Aug 2000 17:31:01 -0400

          From comp.compilers

Related articles
Compiler positions available for week ending August 13 compilers@iecc.com (2000-08-13)
Meta language? mihai@cs.wisc.edu (Mihai Christodorescu) (2000-08-14)
Re: Meta language? idbaxter@semdesigns.com (Ira D. Baxter) (2000-08-20)
Re: Meta language? danwang+news@cs.princeton.edu (Daniel C. Wang) (2000-08-20)
| List of all articles for this month |
From: Mihai Christodorescu <mihai@cs.wisc.edu>
Newsgroups: comp.compilers
Date: 14 Aug 2000 17:31:01 -0400
Organization: UWisc - CS - http://www.cs.wisc.edu/~mihai
References: 00-08-085
Keywords: question

Does anyone know of any language designed specifically for modifying
source code? It should deal with concepts such as "function", "block",
"statement", "expression", "type", etc. (of course, only for
imperative, non-OO languages). It would work on the AST of a program,
modifying the AST, and generating source in the same language:


C source -> meta language? -> C source


I want to be able to do something like: given some source code,
"insert at the entry of each function the statement...", and get back
source code (preferably formatted just like before) with the new
statement inserted in the right places. I can think of other
applications as well, this is the simplest one I can think of.


Any pointers are welcome. I am mostly interested in the design of the
(meta-)language, rather than the implementation.


Thanks,


Mihai


--
  Mihai Christodorescu -=- mihai@cs.wisc.edu - http://www.cs.wisc.edu/~mihai


Post a followup to this message

Return to the comp.compilers page.
Search the comp.compilers archives again.