#NEWLINE# def consume( self , t , src , state ) : #NEWLINE# #INDENT# code = '' #NEWLINE# resdecl = ( 'std::vector<%s> result;\n' % t . getTupleTypename ( ) ) #NEWLINE# state . addDeclarations ( [ resdecl ] ) #NEWLINE# code += ( 'result.push_back(%s);\n' % t . name ) #NEWLINE# if ( self . emit_print == EMIT_CONSOLE ) : #NEWLINE# #INDENT# code += self . language ( ) . log_unquoted ( ( '%s' % t . name ) , 2 ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if ( self . emit_print == EMIT_FILE ) : #NEWLINE# #INDENT# code += self . __file_code__ ( t , state ) #NEWLINE# #UNINDENT# #UNINDENT# return code