parseCat function

Parse a categorical edit expression