def detect(context):
    with context.require_any():
        with context.alternative():
            context.fail('bad alternative 1')
        with context.alternative():
            context.fail('bad alternative 2')
def detect(context):
    with context.require_any():
        with context.alternative():
            context.fail('bad alternative 1')
        with context.alternative():
            context.fail('bad alternative 2')