Efficient Monitoring of Parametric Context-Free Patterns