Simple compilation of patterns