Category grammar