#NEWLINE# def attempt_BooleanExpression( self , expression , context ) : #NEWLINE# #INDENT# 'Attempt to make a boolean expression.  If the next token is a boolean\n        operator, then a BooleanExpression will be returned.  Otherwise, the\n        parameter will be returned.' #NEWLINE# while self . inRange ( 0 ) : #NEWLINE# #INDENT# tok = self . token ( 0 ) #NEWLINE# factory = self . get_BooleanExpression_factory ( tok ) #NEWLINE# if ( factory and self . has_priority ( tok , context ) ) : #NEWLINE# #INDENT# self . token ( ) #NEWLINE# expression = self . make_BooleanExpression ( factory , self , self . process_next_expression ( tok ) ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# break #NEWLINE# #UNINDENT# #UNINDENT# return expression