Grammar-Aware Model Editor