Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » TMF (Xtext) » Repeated value in a grammar rule
Repeated value in a grammar rule [message #1052788] Tue, 30 April 2013 14:31
David Apltauer is currently offline David ApltauerFriend
Messages: 10
Registered: January 2013
Junior Member
Hello,
I have a rule like this

section: "section" name = STRING ... "end" "of" endName = STRING;

The intention is to make the name and endName match. Currently I am imposing that constraint additionally, but then Xtext associates the "end of" caluse with the nearest unclosed section no matter what the end name is. Is there a way to unify the name values so that in

section "a"

section "b"

end of "a"

the outermost section is closed?

David
Previous Topic:XAnnotation / ImportManager
Next Topic:My generated .java file wont run while in the eclipse application
Goto Forum:
  


Current Time: Tue Apr 23 11:47:11 GMT 2024

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

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

Back to the top