Thus replaced end rule with the end token.