Пример #1
0
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]
Пример #2
0
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)
Пример #3
0
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)