sentence1: In yacc , a common hack is to use global variables to simulate some kind of inherited attributes and thus LR-attribution .
sentence2: A global hack is to use common variables in yacc to simulate some kind of inherited attributes and thus LR attribution .