Don't add tokens due to re-declaration
Production rules may redeclare parts of their ancestors children, e.g. to sort them differently.
Currently, those parts are add "again" to affected classes.
Example:
A ::= <Name> <Number:int> MyC:C ;
B : A ::= <Number:int> <Name> MyC:C <Value:float> ;
C ;
Here, B
should have the tokens Name
and Number
only once. The child MyC
must also not be copied.