Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » GMT (Generative Modeling Technologies) » [TCS] Which one should I choose, TCS or Jet?
[TCS] Which one should I choose, TCS or Jet? [message #380583] Wed, 19 December 2007 16:47 Go to next message
Mikai Yang is currently offline Mikai YangFriend
Messages: 149
Registered: July 2009
Senior Member
Hi,
I'd like to develop a code generator for a language, say Java. I know
TCS can generate code based on syntactic description attached to the
metamodel, and I also know that Jet can produce source code of generator
too. I am confused which one I should adopt to build my generator.
Please give me some idea. If you recommend one,either TCS or Jet, it
will be great if you can tell me the reason.
Thanks.

Merry Christmas
Michael.
Re: [TCS] Which one should I choose, TCS or Jet? [message #380584 is a reply to message #380583] Wed, 19 December 2007 22:40 Go to previous messageGo to next message
Andy Carpenter is currently offline Andy CarpenterFriend
Messages: 145
Registered: July 2009
Senior Member
Michael,

You will probably need both TCS and JET. I guess that
for your requirements you will need to use TCS to produce
a model from a 'program' written in your language (think of
a model as an internal data structure representation of your
program); this is a text-to-model transformation.

The code generation would then use this model (internal
data structure). If the code generation results in code that
is similar in structure to your input language then what you
will be performing is a model-to-text transformation for
which JET is one possible implementation technology.

If your language does not have a simple relationship to
the code that you need to generate then the first step will
be a model-to-model transformation. This transforms the
original model representation of your program into a form
closer to the code that you need to generate. Model-to-model
transformation implementation possibilities include ATL.
Once you have a model that is sufficiently close to the code
that you need to generate, you can perform a model-to-text
transformation; as described above.

hope this helps
Andy.


"Michael" <my25@macs.hw.ac.uk> wrote in message
news:fkbhv0$6eo$1@build.eclipse.org...
> Hi,
> I'd like to develop a code generator for a language, say Java. I know
> TCS can generate code based on syntactic description attached to the
> metamodel, and I also know that Jet can produce source code of generator
> too. I am confused which one I should adopt to build my generator.
> Please give me some idea. If you recommend one,either TCS or Jet, it
> will be great if you can tell me the reason.
> Thanks.
>
> Merry Christmas
> Michael.
>
Re: [TCS] Which one should I choose, TCS or Jet? [message #380587 is a reply to message #380584] Thu, 20 December 2007 09:43 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: mikael.barbero.gmail.com

Andy,

TCS is also able to pretty print the model of a program without changes
of the .tcs file. Naturally, the printed program is something being able
to be parsed by TCS :) Code generation with Jet & Co. would only be
needed if you only want to generate code and not parse it again afterward.
Then, I would say that TCS do T2M and M2T.
My $0.02

Regards.
Mikael


Andy Carpenter wrote:
> Michael,
>
> You will probably need both TCS and JET. I guess that
> for your requirements you will need to use TCS to produce
> a model from a 'program' written in your language (think of
> a model as an internal data structure representation of your
> program); this is a text-to-model transformation.
>
> The code generation would then use this model (internal
> data structure). If the code generation results in code that
> is similar in structure to your input language then what you
> will be performing is a model-to-text transformation for
> which JET is one possible implementation technology.
>
> If your language does not have a simple relationship to
> the code that you need to generate then the first step will
> be a model-to-model transformation. This transforms the
> original model representation of your program into a form
> closer to the code that you need to generate. Model-to-model
> transformation implementation possibilities include ATL.
> Once you have a model that is sufficiently close to the code
> that you need to generate, you can perform a model-to-text
> transformation; as described above.
>
> hope this helps
> Andy.
>
>
> "Michael" <my25@macs.hw.ac.uk> wrote in message
> news:fkbhv0$6eo$1@build.eclipse.org...
>> Hi,
>> I'd like to develop a code generator for a language, say Java. I know
>> TCS can generate code based on syntactic description attached to the
>> metamodel, and I also know that Jet can produce source code of generator
>> too. I am confused which one I should adopt to build my generator.
>> Please give me some idea. If you recommend one,either TCS or Jet, it
>> will be great if you can tell me the reason.
>> Thanks.
>>
>> Merry Christmas
>> Michael.
>>
>
>



--
Mikaël Barbero - PhD Candidate
ATLAS Group (INRIA & LINA) - University of Nantes
2, rue de la Houssinière
44322 Nantes Cedex 3 - France
tel. +33 2 51 12 58 08 /\ cell.+33 6 07 63 19 00
email: Mikael.Barbero@{gmail.com, univ-nantes.fr}
http://www.sciences.univ-nantes.fr/lina/atl/
Re: [TCS] Which one should I choose, TCS or Jet? [message #380589 is a reply to message #380587] Thu, 20 December 2007 14:30 Go to previous messageGo to next message
Mikai Yang is currently offline Mikai YangFriend
Messages: 149
Registered: July 2009
Senior Member
Thanks for the help from both of you.
However, the problem is that the download of TCS is not available on the
eclipse website. Do you have any idea of that?

Michael.
"Mika
Re: [TCS] Which one should I choose, TCS or Jet? [message #380591 is a reply to message #380589] Thu, 20 December 2007 16:54 Go to previous message
Eclipse UserFriend
Originally posted by: mikael.barbero.gmail.com

TCS has not been released yet.

Information on how to get it from CVS is available on this wiki page:
http://wiki.eclipse.org/TCS/Language_Project

Samples are available here: http://wiki.eclipse.org/TCS/Zoo

Best regards,
Mikael


Michael wrote:
> Thanks for the help from both of you.
> However, the problem is that the download of TCS is not available on the
> eclipse website. Do you have any idea of that?
>
> Michael.
> "Mikaël Barbero" <mikael.barbero@gmail.com> wrote in message
> news:fkddfj$nnb$1@build.eclipse.org...
>> Andy,
>>
>> TCS is also able to pretty print the model of a program without changes of
>> the .tcs file. Naturally, the printed program is something being able to
>> be parsed by TCS :) Code generation with Jet & Co. would only be needed if
>> you only want to generate code and not parse it again afterward.
>> Then, I would say that TCS do T2M and M2T.
>> My $0.02
>>
>> Regards.
>> Mikael
>>
>>
>> Andy Carpenter wrote:
>>> Michael,
>>>
>>> You will probably need both TCS and JET. I guess that
>>> for your requirements you will need to use TCS to produce
>>> a model from a 'program' written in your language (think of
>>> a model as an internal data structure representation of your
>>> program); this is a text-to-model transformation.
>>>
>>> The code generation would then use this model (internal
>>> data structure). If the code generation results in code that
>>> is similar in structure to your input language then what you
>>> will be performing is a model-to-text transformation for
>>> which JET is one possible implementation technology.
>>>
>>> If your language does not have a simple relationship to
>>> the code that you need to generate then the first step will
>>> be a model-to-model transformation. This transforms the
>>> original model representation of your program into a form
>>> closer to the code that you need to generate. Model-to-model
>>> transformation implementation possibilities include ATL.
>>> Once you have a model that is sufficiently close to the code
>>> that you need to generate, you can perform a model-to-text
>>> transformation; as described above.
>>>
>>> hope this helps
>>> Andy.
>>>
>>>
>>> "Michael" <my25@macs.hw.ac.uk> wrote in message
>>> news:fkbhv0$6eo$1@build.eclipse.org...
>>>> Hi,
>>>> I'd like to develop a code generator for a language, say Java. I know
>>>> TCS can generate code based on syntactic description attached to the
>>>> metamodel, and I also know that Jet can produce source code of generator
>>>> too. I am confused which one I should adopt to build my generator.
>>>> Please give me some idea. If you recommend one,either TCS or Jet, it
>>>> will be great if you can tell me the reason.
>>>> Thanks.
>>>>
>>>> Merry Christmas
>>>> Michael.
>>>>
>>>
>>
>>
>> --
>> Mikaël Barbero - PhD Candidate
>> ATLAS Group (INRIA & LINA) - University of Nantes
>> 2, rue de la Houssinière
>> 44322 Nantes Cedex 3 - France
>> tel. +33 2 51 12 58 08 /\ cell.+33 6 07 63 19 00
>> email: Mikael.Barbero@{gmail.com, univ-nantes.fr}
>> http://www.sciences.univ-nantes.fr/lina/atl/
>
>



--
Mikaël Barbero - PhD Candidate
ATLAS Group (INRIA & LINA) - University of Nantes
2, rue de la Houssinière
44322 Nantes Cedex 3 - France
tel. +33 2 51 12 58 08 /\ cell.+33 6 07 63 19 00
email: Mikael.Barbero@{gmail.com, univ-nantes.fr}
http://www.sciences.univ-nantes.fr/lina/atl/
Re: [TCS] Which one should I choose, TCS or Jet? [message #611027 is a reply to message #380583] Wed, 19 December 2007 22:40 Go to previous message
Andy Carpenter is currently offline Andy CarpenterFriend
Messages: 145
Registered: July 2009
Senior Member
Michael,

You will probably need both TCS and JET. I guess that
for your requirements you will need to use TCS to produce
a model from a 'program' written in your language (think of
a model as an internal data structure representation of your
program); this is a text-to-model transformation.

The code generation would then use this model (internal
data structure). If the code generation results in code that
is similar in structure to your input language then what you
will be performing is a model-to-text transformation for
which JET is one possible implementation technology.

If your language does not have a simple relationship to
the code that you need to generate then the first step will
be a model-to-model transformation. This transforms the
original model representation of your program into a form
closer to the code that you need to generate. Model-to-model
transformation implementation possibilities include ATL.
Once you have a model that is sufficiently close to the code
that you need to generate, you can perform a model-to-text
transformation; as described above.

hope this helps
Andy.


"Michael" <my25@macs.hw.ac.uk> wrote in message
news:fkbhv0$6eo$1@build.eclipse.org...
> Hi,
> I'd like to develop a code generator for a language, say Java. I know
> TCS can generate code based on syntactic description attached to the
> metamodel, and I also know that Jet can produce source code of generator
> too. I am confused which one I should adopt to build my generator.
> Please give me some idea. If you recommend one,either TCS or Jet, it
> will be great if you can tell me the reason.
> Thanks.
>
> Merry Christmas
> Michael.
>
Re: [TCS] Which one should I choose, TCS or Jet? [message #611080 is a reply to message #380584] Thu, 20 December 2007 09:43 Go to previous message
Eclipse UserFriend
Originally posted by: mikael.barbero.gmail.com

Andy,

TCS is also able to pretty print the model of a program without changes
of the .tcs file. Naturally, the printed program is something being able
to be parsed by TCS :) Code generation with Jet & Co. would only be
needed if you only want to generate code and not parse it again afterward.
Then, I would say that TCS do T2M and M2T.
My $0.02

Regards.
Mikael


Andy Carpenter wrote:
> Michael,
>
> You will probably need both TCS and JET. I guess that
> for your requirements you will need to use TCS to produce
> a model from a 'program' written in your language (think of
> a model as an internal data structure representation of your
> program); this is a text-to-model transformation.
>
> The code generation would then use this model (internal
> data structure). If the code generation results in code that
> is similar in structure to your input language then what you
> will be performing is a model-to-text transformation for
> which JET is one possible implementation technology.
>
> If your language does not have a simple relationship to
> the code that you need to generate then the first step will
> be a model-to-model transformation. This transforms the
> original model representation of your program into a form
> closer to the code that you need to generate. Model-to-model
> transformation implementation possibilities include ATL.
> Once you have a model that is sufficiently close to the code
> that you need to generate, you can perform a model-to-text
> transformation; as described above.
>
> hope this helps
> Andy.
>
>
> "Michael" <my25@macs.hw.ac.uk> wrote in message
> news:fkbhv0$6eo$1@build.eclipse.org...
>> Hi,
>> I'd like to develop a code generator for a language, say Java. I know
>> TCS can generate code based on syntactic description attached to the
>> metamodel, and I also know that Jet can produce source code of generator
>> too. I am confused which one I should adopt to build my generator.
>> Please give me some idea. If you recommend one,either TCS or Jet, it
>> will be great if you can tell me the reason.
>> Thanks.
>>
>> Merry Christmas
>> Michael.
>>
>
>



--
Mikaël Barbero - PhD Candidate
ATLAS Group (INRIA & LINA) - University of Nantes
2, rue de la Houssinière
44322 Nantes Cedex 3 - France
tel. +33 2 51 12 58 08 /\ cell.+33 6 07 63 19 00
email: Mikael.Barbero@{gmail.com, univ-nantes.fr}
http://www.sciences.univ-nantes.fr/lina/atl/
Re: [TCS] Which one should I choose, TCS or Jet? [message #611081 is a reply to message #380587] Thu, 20 December 2007 14:30 Go to previous message
Mikai Yang is currently offline Mikai YangFriend
Messages: 149
Registered: July 2009
Senior Member
Thanks for the help from both of you.
However, the problem is that the download of TCS is not available on the
eclipse website. Do you have any idea of that?

Michael.
"Mika
Re: [TCS] Which one should I choose, TCS or Jet? [message #611083 is a reply to message #380589] Thu, 20 December 2007 16:54 Go to previous message
Eclipse UserFriend
Originally posted by: mikael.barbero.gmail.com

TCS has not been released yet.

Information on how to get it from CVS is available on this wiki page:
http://wiki.eclipse.org/TCS/Language_Project

Samples are available here: http://wiki.eclipse.org/TCS/Zoo

Best regards,
Mikael


Michael wrote:
> Thanks for the help from both of you.
> However, the problem is that the download of TCS is not available on the
> eclipse website. Do you have any idea of that?
>
> Michael.
> "Mikaël Barbero" <mikael.barbero@gmail.com> wrote in message
> news:fkddfj$nnb$1@build.eclipse.org...
>> Andy,
>>
>> TCS is also able to pretty print the model of a program without changes of
>> the .tcs file. Naturally, the printed program is something being able to
>> be parsed by TCS :) Code generation with Jet & Co. would only be needed if
>> you only want to generate code and not parse it again afterward.
>> Then, I would say that TCS do T2M and M2T.
>> My $0.02
>>
>> Regards.
>> Mikael
>>
>>
>> Andy Carpenter wrote:
>>> Michael,
>>>
>>> You will probably need both TCS and JET. I guess that
>>> for your requirements you will need to use TCS to produce
>>> a model from a 'program' written in your language (think of
>>> a model as an internal data structure representation of your
>>> program); this is a text-to-model transformation.
>>>
>>> The code generation would then use this model (internal
>>> data structure). If the code generation results in code that
>>> is similar in structure to your input language then what you
>>> will be performing is a model-to-text transformation for
>>> which JET is one possible implementation technology.
>>>
>>> If your language does not have a simple relationship to
>>> the code that you need to generate then the first step will
>>> be a model-to-model transformation. This transforms the
>>> original model representation of your program into a form
>>> closer to the code that you need to generate. Model-to-model
>>> transformation implementation possibilities include ATL.
>>> Once you have a model that is sufficiently close to the code
>>> that you need to generate, you can perform a model-to-text
>>> transformation; as described above.
>>>
>>> hope this helps
>>> Andy.
>>>
>>>
>>> "Michael" <my25@macs.hw.ac.uk> wrote in message
>>> news:fkbhv0$6eo$1@build.eclipse.org...
>>>> Hi,
>>>> I'd like to develop a code generator for a language, say Java. I know
>>>> TCS can generate code based on syntactic description attached to the
>>>> metamodel, and I also know that Jet can produce source code of generator
>>>> too. I am confused which one I should adopt to build my generator.
>>>> Please give me some idea. If you recommend one,either TCS or Jet, it
>>>> will be great if you can tell me the reason.
>>>> Thanks.
>>>>
>>>> Merry Christmas
>>>> Michael.
>>>>
>>>
>>
>>
>> --
>> Mikaël Barbero - PhD Candidate
>> ATLAS Group (INRIA & LINA) - University of Nantes
>> 2, rue de la Houssinière
>> 44322 Nantes Cedex 3 - France
>> tel. +33 2 51 12 58 08 /\ cell.+33 6 07 63 19 00
>> email: Mikael.Barbero@{gmail.com, univ-nantes.fr}
>> http://www.sciences.univ-nantes.fr/lina/atl/
>
>



--
Mikaël Barbero - PhD Candidate
ATLAS Group (INRIA & LINA) - University of Nantes
2, rue de la Houssinière
44322 Nantes Cedex 3 - France
tel. +33 2 51 12 58 08 /\ cell.+33 6 07 63 19 00
email: Mikael.Barbero@{gmail.com, univ-nantes.fr}
http://www.sciences.univ-nantes.fr/lina/atl/
Previous Topic:[TCS] Which one should I choose, TCS or Jet?
Next Topic:[TCS] development of a TCS tool
Goto Forum:
  


Current Time: Thu Mar 28 23:43:38 GMT 2024

Powered by FUDForum. Page generated in 0.03725 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top