<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content=text/html;charset=iso-8859-1 http-equiv=Content-Type>
<META name=GENERATOR content="MSHTML 8.00.7600.16625"></HEAD>
<BODY style="PADDING-LEFT: 10px; PADDING-RIGHT: 10px; PADDING-TOP: 15px"
id=MailContainerBody leftMargin=0 topMargin=0 CanvasTabStop="true"
name="Compose message area">
<DIV><FONT size=2 face=Arial>Hi everyone,</FONT></DIV>
<DIV><FONT size=2 face=Arial></FONT> </DIV>
<DIV><FONT size=2 face=Arial>I would like to (initially) create a src-to-src
compiler to compile some language extension I thought up for parallel
programming. What I had in mind was to have to extend the C grammar, and have a
compiler produce legal C (gnu/c99) out of it again. So I wanted to ask if
Clang could help me do this in a intuitive/easy way? </FONT></DIV>
<DIV><FONT size=2 face=Arial></FONT> </DIV>
<DIV><FONT size=2 face=Arial>I would like to create a simple program that
does just a src to src transformation. As a starting point a program, that uses
the Clang libraries that simply is able to lex, parse, build AST and typecheck,
and generate the legal C/C++ by simply printing the AST
nodes, would be great. Can you guys maybe point me in the right direction
and maybe indicate the complexity of both creating the starting point and the
src-to-src compiler? </FONT></DIV>
<DIV><FONT size=2 face=Arial></FONT> </DIV>
<DIV><FONT size=2 face=Arial>Kind regards,</FONT></DIV>
<DIV><FONT size=2 face=Arial>Chi</FONT></DIV>
<DIV><FONT size=2 face=Arial></FONT> </DIV>
<DIV><FONT size=2 face=Arial></FONT> </DIV></BODY></HTML>