Add accessor methods on Grammar