#NEWLINE# def feed( self , text ) : #NEWLINE# #INDENT# text = ( self . _buf + text ) #NEWLINE# i = 0 #NEWLINE# for c in text : #NEWLINE# #INDENT# self . _fsm . process ( c ) #NEWLINE# while self . _fsm . stack : #NEWLINE# #INDENT# self . _fsm . process ( self . _fsm . pop ( ) ) #NEWLINE# #UNINDENT# i += 1 #NEWLINE# #UNINDENT# if self . _fsm . current_state : #NEWLINE# #INDENT# self . _buf = text [ i : ] #NEWLINE# #UNINDENT# return self . _fsm . current_state