Exemplo n.º 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]
Exemplo n.º 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)
Exemplo n.º 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)
Exemplo n.º 4
0
def p_stream_output(p):
    """stream_output : C_STRING"""
    p[0] = GdbOutput()
    p[0].string = p[1]
Exemplo n.º 5
0
def p_stream_output(p):
	'''stream_output : C_STRING'''
	p[0] = GdbOutput()
	p[0].string = p[1]