Re: An Eiffel to javascript compiler?

Eric Bezault <ericb-D6Qt/9opevxWk0Htik3J/[email protected]> Thu, 14 Jan 2010 10:06:32 +0100
Newsgroups gmane.comp.lang.eiffel.gobo.general,gmane.comp.lang.eiffel.gobo.devel
Message-ID <[email protected]>
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:ericb-D6Qt/9opevxWk0Htik3J/[email protected]
http://www.gobosoft.com


------------------------------------

To Post a message, send it to:   [email protected]
To Unsubscribe, send a blank message to: [email protected]! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/gobo-eiffel/

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/gobo-eiffel/join
    (Yahoo! ID required)

<*> To change settings via email:
    [email protected] 
    [email protected]

<*> To unsubscribe from this group, send an email to:
    [email protected]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/