partial grammar