performant nth-check parser & compiler