#NEWLINE# def p_returns( line , match , stack ) : #NEWLINE# #INDENT# if ( peek ( line ) != dashed_line ) : #NEWLINE# #INDENT# return p_normal ( line , match , stack ) #NEWLINE# #UNINDENT# stack . pop ( ) #NEWLINE# body = [ ] #NEWLINE# consume_blank_lines ( stack ) #NEWLINE# if ( peek ( stack ) == parameter_spec ) : #NEWLINE# #INDENT# ( token , line , match ) = stack . pop ( ) #NEWLINE# consume_blank_lines ( stack ) #NEWLINE# descr = extract_description ( stack ) #NEWLINE# rtype = match . group ( 2 ) #NEWLINE# spec = ReturnSpec ( rtype , descr ) #NEWLINE# body . append ( spec ) #NEWLINE# consume_blank_lines ( stack ) #NEWLINE# #UNINDENT# return Returns ( body )