A parsing expression grammar for the Tidal pattern language, and associated pattern querying functions.