From: Eric B. <er...@go...> - 2010-01-14 09:33:26
|
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. -- Eric Bezault mailto:er...@go... http://www.gobosoft.com |