def p_error(p):
    if p is None:
        raise SyntaxError("Unexpected end of predicate!")
    else:
        err = ("Syntax error at token", p.type, p.value, p.lexpos, p.lineno)
        parser = p.lexer.parser
        parser.errors.append(err)
        parser.errok()
Tail a single file on a single task
dataset/ETHPy150Open armon/pypred/pypred/parser.py/p_error--crossover with--dataset/ETHPy150Open dcos/dcos-cli/cli/tests/integrations/test_task.py/test_log_single_file