Affinity analysis for context-free grammars | IEEE Conference Publication | IEEE Xplore