#NEWLINE# def getTokens( self , stop_at_end = True ) : #NEWLINE# #INDENT# tokens = [ ] #NEWLINE# while True : #NEWLINE# #INDENT# token = self . getNextToken ( tokens ) #NEWLINE# if ( token == None ) : #NEWLINE# #INDENT# break #NEWLINE# #UNINDENT# tokens . append ( token ) #NEWLINE# #UNINDENT# return tokens