begin to implement __call__ on ComplexPattern
finished ComplexPattern.__call__