Search code examples
xtext

Free Order of Rules in Xtext


Is it possible to implement free order of rules in xtext? i.e.:

A: b=B c=C;

must process both

B C 

and

C B

B and C are really complex rules


Solution

  • the concept for that is called unordered groups and can be found in the documentation

    A: b=B & c=C;