

def resolve_name(rule, tokens, id, args):
    if (id in [x[0] for x in tokens]):
        if rule:
            print(('Warning: ignoring parameters on TOKEN %s<<%s>>' % (id, args)))
        return parsetree.Terminal(rule, id)
    else:
        return parsetree.NonTerminal(rule, id, args)

dataset/ETHPy150Open smurfix/yapps/yapps/grammar.py resolve_name/VarMisuse@35/38 `args`->`rule`