|Repeated value in a grammar rule [message #1052788]
||Tue, 30 April 2013 10:31
| David Apltauer
Registered: January 2013
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
end of "a"
the outermost section is closed?
Powered by FUDForum
. Page generated in 0.01437 seconds