First implementation of grammar package.