Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » TMF (Xtext) » Keyword alias(How to create aliases for some JvmType keywords)
Keyword alias [message #917087] Wed, 19 September 2012 20:09
Pascal Degenne is currently offline Pascal DegenneFriend
Messages: 5
Registered: September 2012
Junior Member
I built a DSL using Xbase to benefit form the XEpressions and JvmTypes.
Conversion to Java is based on AbstractModelInferrer.
All works great.

Now I have to customize that DSL : I need to create aliases for some primitive type keywords like be able to use the keyword 'real' for a 'double'.
For example I'd like to write something like :

var real t=1.0 // equivalent to var double t=1.0

I fail to find a reasonnably easy way to do that trick.
Any hint would be welcome.

[Updated on: Wed, 26 September 2012 09:36]

Report message to a moderator

Previous Topic:open editor checked by Xtext
Next Topic:serialize an SADL model!
Goto Forum:
  


Current Time: Thu Apr 25 13:17:38 GMT 2024

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

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

Back to the top