Contibutors for new ObjectMacro targets

View: New views
6 Messages — Rating Filter:   Alert me  

Contibutors for new ObjectMacro targets

by Etienne M. Gagnon :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi all,

I am sure that each of you has his preferred object-oriented programming
language. Be it C#, Python, Ruby, C++, Scala, OCaml, etc. ObjectMacro
has been designed as to make it as easy as possible to target a new
language. Also, the whole sablecc.org site and source repository has
been setup up to simplify code contributions. So...

I am looking for contributors to start working on new targets for
ObjectMacro. If you are interested to contribute, please send a message
on this list. I'll provide help and guidance as needed to help
contributors. I am not a specialist of all these languages, so the deal
is: you provide the expertise in the target language and I provide the
expertise in ObjectMacro internals. Hopefully, more than one contributor
will be interested in specific targets, allowing for mutual help.

For indication, the Java target required approximately 500 lines of code
(many blank lines, individual imports, method headers, etc.) and less
than 300 lines of ObectMacro code. So, it should really be fairly easy
to target a new language with little code (and much copy/paste from the
Java target code).

Thanks in advance!

Etienne

--
Etienne M. Gagnon, Ph.D.
SableCC:                                            http://sablecc.org




_______________________________________________
SableCC-Discussion mailing list
SableCC-Discussion@...
http://lists.sablecc.org/listinfo/sablecc-discussion

signature.asc (265 bytes) Download Attachment

Parent Message unknown Re: Contibutors for new ObjectMacro targets

by Christopher Van Kirk :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


Is this a round about way of saying that SableCC 4 is ready to work with now?

Obviously we can help with C# back end.

--- On Tue, 5/5/09, Etienne M. Gagnon <egagnon@...> wrote:

> From: Etienne M. Gagnon <egagnon@...>
> Subject: Contibutors for new ObjectMacro targets
> To: "Discussion mailing list for the SableCC project" <sablecc-discussion@...>
> Date: Tuesday, May 5, 2009, 1:00 AM
> Hi all,
>
> I am sure that each of you has his preferred
> object-oriented programming
> language. Be it C#, Python, Ruby, C++, Scala, OCaml, etc.
> ObjectMacro
> has been designed as to make it as easy as possible to
> target a new
> language. Also, the whole sablecc.org site and source
> repository has
> been setup up to simplify code contributions. So...
>
> I am looking for contributors to start working on new
> targets for
> ObjectMacro. If you are interested to contribute, please
> send a message
> on this list. I'll provide help and guidance as needed to
> help
> contributors. I am not a specialist of all these languages,
> so the deal
> is: you provide the expertise in the target language and I
> provide the
> expertise in ObjectMacro internals. Hopefully, more than
> one contributor
> will be interested in specific targets, allowing for mutual
> help.
>
> For indication, the Java target required approximately 500
> lines of code
> (many blank lines, individual imports, method headers,
> etc.) and less
> than 300 lines of ObectMacro code. So, it should really be
> fairly easy
> to target a new language with little code (and much
> copy/paste from the
> Java target code).
>
> Thanks in advance!
>
> Etienne
>
> --
> Etienne M. Gagnon, Ph.D.
> SableCC:             
>                
>               http://sablecc.org
>
>
>
> -----Inline Attachment Follows-----
>
> _______________________________________________
> SableCC-Discussion mailing list
> SableCC-Discussion@...
> http://lists.sablecc.org/listinfo/sablecc-discussion
>

_______________________________________________
SableCC-Discussion mailing list
SableCC-Discussion@...
http://lists.sablecc.org/listinfo/sablecc-discussion

Re: Contibutors for new ObjectMacro targets

by Etienne M. Gagnon :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi Christopher,

SableCC 4 is not ready to work with yet, but ObjectMacro is. It is
already being used by SableCC 4.

ObjectMacro will be distributed along SableCC 4, and I will encourage
its use by SableCC 4 users when they need to generate textual output. It
is thus important for ObjectMacro to target the same languages as SableCC 4.

Familiarity with ObjectMacro will be essential for adding a new target
to SableCC 4. So, I view this first step as a relatively simple one,
allowing contributors to get familiar with ObjectMacro and the whole
process of target a new language. It will also allow contributors to set
up their system to compile SableCC, and learn to work with Mercurial.

Have fun!

Etienne

Christopher Van Kirk wrote:
> Is this a round about way of saying that SableCC 4 is ready to work with now?
>
> Obviously we can help with C# back end.
>  

--
Etienne M. Gagnon, Ph.D.
SableCC:                                            http://sablecc.org




_______________________________________________
SableCC-Discussion mailing list
SableCC-Discussion@...
http://lists.sablecc.org/listinfo/sablecc-discussion

signature.asc (265 bytes) Download Attachment

Re: Contibutors for new ObjectMacro targets

by Lucas Satabin :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi all,

As you probably already read, I am working on a Scala back-end for ObjectMacro. I already have an objectmacro file that allows to generate Scala code with ObjectMacro (since this night...) but it is not tested yet (I also need to sleep sometimes). However it looks really good (and the generated Scala code compiles). I integrated the new target in ObjectMacro (--trarget=scala) as well as the generated macro classes (Java). I do not know how this contribution can be then integrated (when it will be tested), to allow other interested persons to access it (a new branch ? I am not really familiar with mercurial so I have to learn more about it).
If somebody is interested in contributing to a Scala back-end, I can share my current job.

@Etienne: how did you plan to integrate these contributions into the project ? Do we have to share it ourself ?

Lucas

Etienne M. Gagnon schrieb:
Hi all,

I am sure that each of you has his preferred object-oriented programming
language. Be it C#, Python, Ruby, C++, Scala, OCaml, etc. ObjectMacro
has been designed as to make it as easy as possible to target a new
language. Also, the whole sablecc.org site and source repository has
been setup up to simplify code contributions. So...

I am looking for contributors to start working on new targets for
ObjectMacro. If you are interested to contribute, please send a message
on this list. I'll provide help and guidance as needed to help
contributors. I am not a specialist of all these languages, so the deal
is: you provide the expertise in the target language and I provide the
expertise in ObjectMacro internals. Hopefully, more than one contributor
will be interested in specific targets, allowing for mutual help.

For indication, the Java target required approximately 500 lines of code
(many blank lines, individual imports, method headers, etc.) and less
than 300 lines of ObectMacro code. So, it should really be fairly easy
to target a new language with little code (and much copy/paste from the
Java target code).

Thanks in advance!

Etienne

  

_______________________________________________ SableCC-Discussion mailing list SableCC-Discussion@... http://lists.sablecc.org/listinfo/sablecc-discussion


_______________________________________________
SableCC-Discussion mailing list
SableCC-Discussion@...
http://lists.sablecc.org/listinfo/sablecc-discussion

Re: Contibutors for new ObjectMacro targets

by Etienne M. Gagnon :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi Lucas,

My intent is to integrate contributed targets within ObjectMacro (and
SableCC), so that they work out-of-the-box for users. As you noticed,
the process of adding a new target is quite painless.

As for the process of contributing code, please read
http://sablecc.org/wiki/ContributingCode . It should be easy enough to
follow the instructions.

Have fun!

Etienne

Lucas Satabin wrote:

> As you probably already read, I am working on a Scala back-end for
> ObjectMacro. I already have an objectmacro file that allows to
> generate Scala code with ObjectMacro (since this night...) but it is
> not tested yet (I also need to sleep sometimes). However it looks
> really good (and the generated Scala code compiles). I integrated the
> new target in ObjectMacro (--trarget=scala) as well as the generated
> macro classes (Java). I do not know how this contribution can be then
> integrated (when it will be tested), to allow other interested persons
> to access it (a new branch ? I am not really familiar with mercurial
> so I have to learn more about it).
> If somebody is interested in contributing to a Scala back-end, I can
> share my current job.
>
> @Etienne: how did you plan to integrate these contributions into the
> project ? Do we have to share it ourself ?
--
Etienne M. Gagnon, Ph.D.
SableCC:                                            http://sablecc.org




_______________________________________________
SableCC-Discussion mailing list
SableCC-Discussion@...
http://lists.sablecc.org/listinfo/sablecc-discussion

signature.asc (265 bytes) Download Attachment

Parent Message unknown Re: Contibutors for new ObjectMacro targets

by Fidel Viegas-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Mon, May 4, 2009,  "Etienne M. Gagnon" <egagnon@...> wrote:

>
> Hi all,
>
> I am sure that each of you has his preferred object-oriented programming
> language. Be it C#, Python, Ruby, C++, Scala, OCaml, etc. ObjectMacro
> has been designed as to make it as easy as possible to target a new
> language. Also, the whole sablecc.org site and source repository has
> been setup up to simplify code contributions. So...
>
> I am looking for contributors to start working on new targets for
> ObjectMacro. If you are interested to contribute, please send a message
> on this list. I'll provide help and guidance as needed to help
> contributors. I am not a specialist of all these languages, so the deal
> is: you provide the expertise in the target language and I provide the
> expertise in ObjectMacro internals. Hopefully, more than one contributor
> will be interested in specific targets, allowing for mutual help.
>
> For indication, the Java target required approximately 500 lines of code
> (many blank lines, individual imports, method headers, etc.) and less
> than 300 lines of ObectMacro code. So, it should really be fairly easy
> to target a new language with little code (and much copy/paste from the
> Java target code).
>
> Thanks in advance!

Hi Etienne,

Good News!!

I have implemented the Python backend using Indrek's Alt-gen, but that
hasn't been updated in a long time. The version of the backend I have
is newer than the one distributed on his website. Nonetheless, I would
be interested in porting the Python backend to SableCC 4 using
ObjectMacro.

So, I will surf the website for the contribution guidelines and come
back here for any questions.

Regards,

Fidel.

_______________________________________________
SableCC-Discussion mailing list
SableCC-Discussion@...
http://lists.sablecc.org/listinfo/sablecc-discussion