RhsPart.copy; use copy instead of detach for rewriting
LexicalRule -> LexerRule
implement Terminal.isConstant, Terminal.getRules
implement RhsAssignment and use instead of RhsSymbol.getAlias()