Generate Navigation.jrag only for subset of given grammar files ignoring others
Add an option to only generate navigation attributes for certain grammar files, i.e., ignore the rest for generation.
Sometimes some grammar files are only needed to get a complete specification. It might also be an alternative to allow incomplete grammars.
Some cases to considered as examples below. The goal would always be to only generate navigation for A1
and A2
.
Example 1: Uncritical
Wanted.ast:
A ::= B* ;
A1 : A;
A2 : A;
Included.ast:
B ::= <Name> ;
B1 : B;
B2 : B;
Example 2: Superclass in ignored
Wanted.ast:
A1 : A;
A2 : A;
Included.ast:
A ::= B* ;
B ::= <Name> ;
B1 : B;
B2 : B;
Example 3: More subclasses in ignored
Wanted.ast:
A ;
A1 : A;
A2 : A;
Included.ast:
A3 : A;