<html>
<head>
<style>
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Verdana
}
</style>
</head>
<body class='hmmessage'>
I was not thinking in use clan as an interpreter, but using it to:<br><br>- making refactoring in the game code<br>- show, in the IDE, information about any selected token (type, name, ...) and the possibility to change the properties in a grid control (even for functions)<br>- compiles the final game code and generates the llvm bitcode<br><br>The only use I can see for interpretation in this context, is to debug the game. But, is this not a feature provided by the llvm (may be in future versions)?<br><br>Regards,<br>Makslane<br><br><br><br>> Date: Tue, 11 Nov 2008 12:48:29 -0800<br>> From: akyrtzi@gmail.com<br>> To: clattner@apple.com<br>> CC: makslane@hotmail.com; cfe-dev@cs.uiuc.edu<br>> Subject: Re: [cfe-dev] Help request for a game IDE project<br>> <br>> Chris Lattner wrote:<br>> ><br>> > This is definitely a direction that we'd like to go with clang.  There <br>> > are already people in the community that are very interested in <br>> > interpretation specifically (e.g. read/eval/print loops),<br>> <br>> Some time ago I did a bit of experimentation for this and was happy to <br>> conclude that clang's modular design makes it really easy.<br>> The changes required were mostly about exposing APIs that are currently <br>> private, some methods on the Parser and Sema.<br>> <br>> What are the expectations of people on how a C/C++ REPL should work ?<br>> I mean, certain interpreters allow mixing expressions and declarations <br>> e.g, you can define a function and evaluate an expression without <br>> switching declaration contexts.<br>> Using Clang almost as is, would need some kind of a declaration context <br>> switch, (like "type in expression context>"), would this be reasonable ?<br>> <br>> -Argiris<br><br /><hr />Notícias direto do New York Times, gols do Lance, videocassetadas e muitos outros vídeos no MSN Videos! <a href='http://video.msn.com/?mkt=pt-br' target='_new'>Confira já!</a></body>
</html>