Make parsing rules a parameter.