def _tgrep_parens_action(_s, _l, tokens):
    # print 'parenthetical tokens: ', tokens
    assert len(tokens) == 3
    assert tokens[0] == '('
    assert tokens[2] == ')'
    return tokens[1]
Builds a lambda function representing a predicate on a tree node
dataset/ETHPy150Open nltk/nltk/nltk/tgrep.py/_tgrep_parens_action