From: Cheng-Chang Wu <che...@ya...> - 2010-01-15 05:37:02
|
Hi Howard, I''d like to build my project on your work. Will you release your code as a project in github? Regards, Cheng-Chang ________________________________ 寄件者: Howard Thomson <how...@di...> 收件者: gob...@li... 寄件日期: 2010/1/14 (四) 8:42:15 PM 主 旨: Re: [gobo-eiffel-develop] [gobo-eiffel] An Eiffel to javascript compiler? Hi all, I have been working on adapting gec to emit code using the LLVM package, and have done some work on splitting ET_C_GENERATOR into an ET_CODE_GENERATOR and descendant classes for C code generation, LLVM assembly code etc. It is still very much work-in-progress, but I will make it available if anyone is interested ... Regards, Howard On Thursday 14 January 2010, Eric Bezault wrote: > Cheng-Chang Wu wrote: > > as an exercise to understand GEC I'd like to write an Eiffel to javascript compiler. > > What is the best way to start such a project? > > You can create a clone of the git project in github. > The master Gobo git repository in github is here: > > http://github.com/gobo-eiffel/gobo > > You can create your own account in github and start > your project as a fork of the Gobo git repository. > > When you have that in place, you can start working > on your project and make your changes available for > others in your github repository. it will then be easy > to merge them to the main Gobo repository. > > Now in the code of gec, there is a class ET_C_GENERATOR > which does the generation of C code. I think that what > you will have to do is to write an ancestor of this > class, say ET_CODE_GENERATOR (or just ET_GENERATOR, I > don't know). Then you can write your own generator > ET_JAVASCRIPT_GENERATOR as another descendant of this > class. > -- Howard Thomson -- "Only two things are infinite, the universe and human stupidity, and I'm not sure about the former." -- Albert Einstein ___________________________________________________ 您的生活即時通 - 溝通、娛樂、生活、工作一次搞定! http://messenger.yahoo.com.tw/ |