def p_async_output(p): """async_output : async_class | async_class COMMA result_list""" p[0] = GdbOutput() p[0].class_ = p[1] if len(p) == 4: p[0].results = p[3]
def p_result_record(p): """result_record : result_class | result_class COMMA result_list""" p[0] = GdbOutput() p[0].class_ = p[1] if len(p) == 4: for a in p[3]: setattr(p[0], a.dest, a.src)
def p_result_record(p): '''result_record : result_class | result_class COMMA result_list''' p[0] = GdbOutput() p[0].class_ = p[1] # print "////////////////////", len(p) if len(p) == 4: for a in p[3]: # print "##################################setting ", a.dest, "to", a.src setattr(p[0], a.dest, a.src)
def p_stream_output(p): """stream_output : C_STRING""" p[0] = GdbOutput() p[0].string = p[1]
def p_stream_output(p): '''stream_output : C_STRING''' p[0] = GdbOutput() p[0].string = p[1]