Moved grammar definition