factor out 'infix' and 'mixfix' parse actions