|
|
Re: RichString in Xbase [message #1691918 is a reply to message #1691905] |
Fri, 10 April 2015 13:02 |
Boris Brodski Messages: 112 Registered: July 2009 |
Senior Member |
|
|
Hello Sebastian,
thank you for the quick reply!
I'm working on porting Jnario from "extending Xtend" to "extending Xbase" (https://github.com/sebastianbenz/Jnario/issues/160)
Theoretically in Jnario we need full support for the template expressions, so it possible to just copy any Xtend code and paste it into Jnario Spec and it just works.
But since the porting process is complicated and slow, we agreed on a partial support for the template expressions (or even no support at all) for the first time.
But may be there are some compromise solutions, like:
- Add RichString* EMF classes, generator and ui support to the Xbase, but no RichString grammar part. A user may than add it to the DSL-grammar by himself.
- Write a workflow-generator to optionally add this feature directly to the user project
- Add simplified template expressions (triple quote multiline strings + guillemet placeholders), but no embedded IF and FOR operators
- Provide an example project (New/Other -> Examples/Xtext Examples/Xtext RichString Example) with this feature implemented
In my personal opinion, rich strings are a great feature of the Xtend and I can think of multiple use cases within all kinds of Xbase-DSLs.
Cheers,
Boris
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.02327 seconds