Skip to main content



      Home
Home » Modeling » TMF (Xtext) » How i can remove empty keyword from xtext editor.
How i can remove empty keyword from xtext editor. [message #1809050] Mon, 08 July 2019 02:09 Go to next message
Eclipse UserFriend
Hi,

I am using xtext version- 2.17.1.
I am opening the xtext editor for imported file, and that file contains some empty tags. On opening it is giving error. So how can i remove those empty keywords from xtext editor.
Any one can please help out to fix this one.

Thank you!!!!
Re: How i can remove empty keyword from xtext editor. [message #1809051 is a reply to message #1809050] Mon, 08 July 2019 02:10 Go to previous messageGo to next message
Eclipse UserFriend
what is an empty keyword?
Re: How i can remove empty keyword from xtext editor. [message #1809052 is a reply to message #1809051] Mon, 08 July 2019 02:43 Go to previous messageGo to next message
Eclipse UserFriend
Hi Christian,
Thanks for the quick response..

If i have grammar -
Family returns Family:
{Family}
'Family{'
'Name:' name=EString
'}';

Here 'Name:' is keyword. i have imported one file, in that name is empty but tag has been created. So on opening xtext editor for that file, it will print the keyword 'Name:' with empty value.
I do not want to print keyword with empty value. how i can remove it?
Re: How i can remove empty keyword from xtext editor. [message #1809053 is a reply to message #1809052] Mon, 08 July 2019 02:51 Go to previous messageGo to next message
Eclipse UserFriend
strange grammar. maybe you can change it to

('Name:' name=EString)?

btw it that empty "" or is it null (in the model you open)
if it really is "" i am not sure about that. maybe you can customize the serializer
Re: How i can remove empty keyword from xtext editor. [message #1809055 is a reply to message #1809053] Mon, 08 July 2019 03:23 Go to previous messageGo to next message
Eclipse UserFriend
I am getting empty value "" only.
Re: How i can remove empty keyword from xtext editor. [message #1809057 is a reply to message #1809055] Mon, 08 July 2019 03:38 Go to previous message
Eclipse UserFriend
what is the value in the model?
Previous Topic:Customizing validator behavior
Next Topic:Deploy Xtext DSL into Intellij
Goto Forum:
  


Current Time: Sat Apr 26 18:37:54 EDT 2025

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

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

Back to the top