Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » TMF (Xtext) » XText 2.9 and single quotes
XText 2.9 and single quotes [message #1715533] Tue, 24 November 2015 09:50 Go to next message
David Baum is currently offline David BaumFriend
Messages: 20
Registered: August 2014
Junior Member
Hello everyone,

I'm having a small problem with xtext 2.9 and single quotes. The file I want to describe looks like this:

	(MyElement
		(name 'foobar'))


My Xtext grammar:

MYElement:
	'(MyElement'
	'(' 'name' value=MYSTRING ')'
	')';

terminal MYSTRING:
	("'"->"'")*;


This was working as expected until Xtext 2.8.4 and name had the value foobar. However when updating to xtext 2.9 name now has the value 'foobar' (with the single quotes). Which changes in xtext causes this new behaviour? Is this a bug or do I have to adopt my grammar?

Thanks in advance.

[Updated on: Tue, 24 November 2015 09:56]

Report message to a moderator

Re: XText 2.9 and single quotes [message #1715535 is a reply to message #1715533] Tue, 24 November 2015 09:57 Go to previous messageGo to next message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 14665
Registered: July 2009
Senior Member
its 'foobar' in both 2.8.x and 2.9.x.

guess you messed up something with the IValueConverter(Service)


Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
Re: XText 2.9 and single quotes [message #1715699 is a reply to message #1715535] Wed, 25 November 2015 10:31 Go to previous message
David Baum is currently offline David BaumFriend
Messages: 20
Registered: August 2014
Junior Member
Oh, you're right of course. I forgot to register the IValueConverter, I'm sorry.
Previous Topic:Converting newly build DSL code to txt file
Next Topic:Xtext
Goto Forum:
  


Current Time: Thu Apr 25 01:28:01 GMT 2024

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

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

Back to the top