Add some grammar accessors.