Initialize patterns during parser initialization.

Saves having to check it each time.