<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
Manuel,<br>
<br>
Is there any class of clang to be used in order to prepare and emit
the code, such as the Rewriter class or this one does not apply in
this case?<br>
<br>
Thanks,<br>
<br>
Miguel<br>
<br>
On 01/18/2013 11:00 AM, Manuel Klimek wrote:
<blockquote
cite="mid:CAOsfVvn_=8VNUfqiuK6wS8vU5wfHzcmqAFgBnrmwyseDQ2ccYg@mail.gmail.com"
type="cite">
<div dir="ltr">
<div class="gmail_default" style="">+cfe-dev</div>
<div dir="ltr">
<div class="gmail_extra"><br>
On Fri, Jan 18, 2013 at 10:56 AM, Miguel Aguilar <span
dir="ltr"><<a moz-do-not-send="true"
href="mailto:miguel.aguilar@ice.rwth-aachen.de"
target="_blank">miguel.aguilar@ice.rwth-aachen.de</a>></span>
wrote:<br>
<div class="gmail_quote">
<blockquote class="gmail_quote" style="margin:0 0 0
.8ex;border-left:1px #ccc solid;padding-left:1ex">
<div bgcolor="#FFFFFF" text="#000000"> Hi Manuel,<br>
<br>
Is it possible to build a new AST while you walk the
original AST?<br>
</div>
</blockquote>
<div><br>
</div>
<div style="">Well, technically it is, but I think
emitting code in your other language will be easier and
more maintainable...</div>
<div style=""><br>
</div>
<div style="">Cheers,</div>
<div style="">/Manuel</div>
<div> </div>
<blockquote class="gmail_quote" style="margin:0 0 0
.8ex;border-left:1px #ccc solid;padding-left:1ex">
<div bgcolor="#FFFFFF" text="#000000"> <br>
Thanks,<br>
<br>
Miguel
<div>
<div class="h5"><br>
<br>
On 01/18/2013 08:26 AM, Manuel Klimek wrote:
<blockquote type="cite">
<div dir="ltr">
<div>On Thu, Jan 17, 2013 at 2:58 PM, Miguel
Aguilar <span dir="ltr"><<a
moz-do-not-send="true"
href="mailto:miguel.aguilar@ice.rwth-aachen.de"
target="_blank">miguel.aguilar@ice.rwth-aachen.de</a>></span>
wrote:<br>
</div>
<div class="gmail_extra">
<div class="gmail_quote">
<blockquote class="gmail_quote"
style="margin:0 0 0 .8ex;border-left:1px
#ccc solid;padding-left:1ex">Hi,<br>
<br>
I would like to know the possible
approaches to translate a program in C++
to another language such as C using
Clang. Should I walk in the AST and emit
the code or should I create a new AST in
the other language for example?.<br>
</blockquote>
<div><br>
</div>
<div>The general advice I've seen given
most often on this list is to walk the
AST and emit the code.</div>
<div><br>
</div>
<div>Cheers,</div>
<div>/Manuel</div>
<div> <br>
</div>
<blockquote class="gmail_quote"
style="margin:0 0 0 .8ex;border-left:1px
#ccc solid;padding-left:1ex"> <br>
Thanks in advanced,<br>
<br>
Miguel<br>
_______________________________________________<br>
cfe-dev mailing list<br>
<a moz-do-not-send="true"
href="mailto:cfe-dev@cs.uiuc.edu"
target="_blank">cfe-dev@cs.uiuc.edu</a><br>
<a moz-do-not-send="true"
href="http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev"
target="_blank">http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev</a><br>
</blockquote>
</div>
<br>
</div>
</div>
<br>
<fieldset></fieldset>
<br>
<pre>_______________________________________________
cfe-dev mailing list
<a moz-do-not-send="true" href="mailto:cfe-dev@cs.uiuc.edu" target="_blank">cfe-dev@cs.uiuc.edu</a>
<a moz-do-not-send="true" href="http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev" target="_blank">http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev</a>
</pre>
</blockquote>
<br>
</div>
</div>
</div>
</blockquote>
</div>
<br>
</div>
</div>
</div>
</blockquote>
<br>
</body>
</html>