def do(args):
    try:
        tc = qitoolchain.get_toolchain(args.name)
    except Exception:
        if args.force:
            return
        else:
            raise
    if args.force:
        ui.info(ui.green, "Removing toolchain", ui.blue, tc.name)
        tc.remove()
        ui.info(ui.green, "done")
    else:
        ui.info("Would remove toolchain", ui.blue, tc.name)
        ui.info("Use --force to actually remove it.")
Return the rules for parsing the grammar definition syntax.
dataset/ETHPy150Open aldebaran/qibuild/python/qitoolchain/actions/remove.py/do--crossover with--dataset/ETHPy150Open erikrose/parsimonious/parsimonious/grammar.py/BootstrappingGrammar._expressions_from_rules