Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » TMF (Xtext) » about grammar again
about grammar again [message #1072340] Mon, 22 July 2013 14:56 Go to next message
Yueming Hong is currently offline Yueming HongFriend
Messages: 87
Registered: April 2013
Member
There is no Object created for the terminal rule and neither the parser rules
AbstractElement:
KeyValuePair
;
KeyValuePair:
KVP
;

terminal fragment END:
'\r\n'|'\n'
;
terminal KVP:
('a'..'z'|'A'..'Z')(.)* END
;

so what is the problem here?

Thanks advance

[Updated on: Mon, 22 July 2013 15:26]

Report message to a moderator

Re: about grammar again [message #1072364 is a reply to message #1072340] Mon, 22 July 2013 15:47 Go to previous messageGo to next message
Yueming Hong is currently offline Yueming HongFriend
Messages: 87
Registered: April 2013
Member
it seems that if there is no java class generated for the parser rule without feature nor the terminal rule
Re: about grammar again [message #1072382 is a reply to message #1072340] Mon, 22 July 2013 16:40 Go to previous message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 6543
Registered: July 2009
Senior Member
Why don't u use the -> operator as it is done in default terminals .
you should have a look at the errors of the workflow. I am sure there
are ones.

--
Need training, onsite consulting or any other kind of help for Xtext?
Go visit http://xtext.itemis.com or send a mail to xtext at itemis dot de
Previous Topic:Language with macro concept
Next Topic:Hover support and data type rules
Goto Forum:
  


Current Time: Thu Dec 18 14:42:10 GMT 2014

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

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