Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » M2T (model-to-text transformation) » [Acceleo] Can Acceleo support @text-explicit syntax ?
[Acceleo] Can Acceleo support @text-explicit syntax ? [message #634827] Sun, 24 October 2010 04:43 Go to next message
Yannick Duchene (Hibou57) is currently offline Yannick Duchene (Hibou57)Friend
Messages: 50
Registered: September 2010
Location: Metz (France - Europe)
Member
Hello,

The M2T reference (as published by the OMG), at charpet 7.1, specifies escape direction : either the M2T text is escaped, or the target text is escaped.

When the M2T text is to be escaped, one add a "@code-explicit" annotation at the beginning of the file. When on the opposite, target text is to be escaped, one will be directed to use a "@text-explicit" annotation instead.

I would like to use "@text-explicit", but although Acceleo does not complains about the annotation, it does not seems to handle it, as I get only errors in the text when I do so.

How one should do Text Explicit M2T source with Acceleo ?

[Updated on: Sun, 24 October 2010 04:45]

Report message to a moderator

Re: [Acceleo] Can Acceleo support @text-explicit syntax ? [message #634862 is a reply to message #634827] Sun, 24 October 2010 17:32 Go to previous messageGo to next message
Yannick Duchene (Hibou57) is currently offline Yannick Duchene (Hibou57)Friend
Messages: 50
Registered: September 2010
Location: Metz (France - Europe)
Member
Feel unlucky,

Here is what could be found on that topic.

Quote:
Concerning the language, almost all of the OMG specification keywords are supported (those marked with an asterisk are not fully supported yet):
module, import, extends, template, query, public, private, protected, guard, init,
overrides, each, before, after, for, if, elseif, else, let, elselet, trace*, macro*,
file, mode, text_explicit*, code_explicit*, super, stdout

http://wiki.eclipse.org/Acceleo

Surprisingly, even code-explicit is marked as only partially supported. Also notice the dash is replaced with an underscore, so will try with this flavor.


Quote:
Themes and Priorities
Core feature compliance
Standalone Component.
Core feature compliance level of the MOF Model-To-Text language.
Template and Query support.
Text explicit mode : first acceleo syntax support.
How to package a module?
acceleo Runtime library.

http://www.eclipse.org/projects/project-plan.php?planurl=htt p://www.eclipse.org/modeling/m2t/acceleo/plan-galileo.xml

The latter quote is from a page named "Project Plan For Acceleo, version 0.8.0", so this should be OK with Acceleo 3


These are the only informations I could found about Acceleo and @text-explicit/@code-explicit (for the that time).
Re: [Acceleo] Can Acceleo support @text-explicit syntax ? [message #634946 is a reply to message #634862] Mon, 25 October 2010 08:04 Go to previous messageGo to next message
Laurent Goubet is currently offline Laurent GoubetFriend
Messages: 1902
Registered: July 2009
Senior Member
This is a multi-part message in MIME format.
--------------050203030407070104030709
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit

Hi Yannick,

As you found out, Acceleo doesn't support the text-explicit and
code-explicit constructs. However, I don't really understand the root of
your question as the only supported syntax _is_ the text-explicit one.
As it is the default, you don't need to explicitely use the
"@text-explicit" annotation.

As for the underscores replacing dash, that's one of the many issues of
the spec : section 8.2 Concrete Syntax defines those two with an
underscore in the "keywords" list while a dash is used everywhere else.
We don't have plans yet to support the code-explicit syntax, we'd rather
stabilize what we have beforehand.

What you found is our project plan for 0.8.0, where we indeed completed
the support of the text explicit syntax (it is till listed as "not fully
supported" since we don't support the "text-explicit" annotation
itself... but that is all). The project plan for 3.0 was located here :
http://www.eclipse.org/projects/project-plan.php?projectid=m odeling.m2t.acceleo
and we haven't yet finalized the project plan for 3.1

Laurent Goubet
Obeo

Yannick Duchene wrote:
> Feel unlucky,
>
> Here is what could be found on that topic.
>
> Quote:
>> Concerning the language, almost all of the OMG specification keywords
>> are supported (those marked with an asterisk are not fully supported
>> yet):
>> module, import, extends, template, query, public, private, protected,
>> guard, init,
>> overrides, each, before, after, for, if, elseif, else, let, elselet,
>> trace*, macro*,
>> file, mode, text_explicit*, code_explicit*, super, stdout
>
> http://wiki.eclipse.org/Acceleo
>
> Surprisingly, even code-explicit is marked as only partially supported.
> Also notice the dash is replaced with an underscore, so will try with
> this flavor.
>
>
> Quote:
>> Themes and Priorities
>> Core feature compliance
>> Standalone Component.
>> Core feature compliance level of the MOF Model-To-Text language.
>> Template and Query support.
>> Text explicit mode : first acceleo syntax support.
>> How to package a module?
>> acceleo Runtime library.
>
> http://www.eclipse.org/projects/project-plan.php?planurl=htt p://www.eclipse.org/modeling/m2t/acceleo/plan-galileo.xml
>
>
> The latter quote is from a page named "Project Plan For Acceleo, version
> 0.8.0", so this should be OK with Acceleo 3
>
>
> These are the only informations I could found about Acceleo and
> @text-explicit/@code-explicit (for the that time).
>


--------------050203030407070104030709
Content-Type: text/x-vcard; charset=utf-8;
name="laurent_goubet.vcf"
Content-Transfer-Encoding: base64
Content-Disposition: attachment;
filename="laurent_goubet.vcf"

YmVnaW46dmNhcmQNCmZuOkxhdXJlbnQgR291YmV0DQpuOkdvdWJldDtMYXVy ZW50DQpvcmc6
PGEgaHJlZj0iaHR0cDovL3d3dy5vYmVvLmZyIj5PYmVvPC9hPg0KZW1haWw7 aW50ZXJuZXQ6
bGF1cmVudC5nb3ViZXRAb2Jlby5mcg0KdXJsOmh0dHA6Ly93d3cub2Jlby5m cg0KdmVyc2lv
bjoyLjENCmVuZDp2Y2FyZA0KDQo=
--------------050203030407070104030709--
Re: [Acceleo] Can Acceleo support @text-explicit syntax ? [message #635173 is a reply to message #634946] Mon, 25 October 2010 20:36 Go to previous message
Yannick Duchene (Hibou57) is currently offline Yannick Duchene (Hibou57)Friend
Messages: 50
Registered: September 2010
Location: Metz (France - Europe)
Member
Laurent Goubet wrote on Mon, 25 October 2010 04:04
However, I don't really understand the root of
your question as the only supported syntax _is_ the text-explicit one.
As it is the default, you don't need to explicitely use the
"@text-explicit" annotation.

Sorry, I was confused and inverted the meaning of code-explicit and text-explicit. I wanted to say I was trying to use the code-explicit form, because I have much more M2T text than target text.

Well, I will not bother, as, as you said, there are probably stuffs of higher priority.
Previous Topic:[Acceleo 3 / MTL] Variables in MTL?
Next Topic:Java Indexer running unnecessarily
Goto Forum:
  


Current Time: Fri Mar 29 08:57:43 GMT 2024

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

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

Back to the top