Update semantic rules in the grammar