Matched constructors to grammar