[ 
https://issues.apache.org/jira/browse/THRIFT-1173?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13044768#comment-13044768
 ] 

alessandro rossi commented on THRIFT-1173:
------------------------------------------

another update:
I dusted off the Dragon Book (Compilers: Principles, Techniques, and Tools 
[Aho,Sethi,Ullman]) but this approch is more complicated, because i WANT a 
powerful scripting languages. So, follow the KISS principle, I'm developing a 
template engine using LUA embedded in C/C++. Lua (that I used in other 
projects) have small footprint, is ANSI C  and is more powerfull than my 
(future?) template language/engine.
What do you think about my choise? 


 

> Using template system (for example: ctemplate) for code generation
> ------------------------------------------------------------------
>
>                 Key: THRIFT-1173
>                 URL: https://issues.apache.org/jira/browse/THRIFT-1173
>             Project: Thrift
>          Issue Type: Improvement
>          Components: Compiler (General)
>    Affects Versions: 0.6.1
>            Reporter: alessandro rossi
>            Priority: Minor
>              Labels: generation, template
>
> IMHO, the code generation embedded into generator's code is not a good 
> solution.
> With ctemplate (http://code.google.com/p/google-ctemplate/), for example, we 
> can separate logic with generation code.
> If you want I can implement an example for cpp generator.
> Best Regards,
> Alessandro

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to