def getEvaluatedExpressionValueBySplitLine(elementNode, words):
 evaluators = []
 for (wordIndex, word) in enumerate(words):
  nextWord = ''
  nextWordIndex = (wordIndex + 1)
  if (nextWordIndex < len(words)):
   nextWord = words[nextWordIndex]
  evaluator = getEvaluator(elementNode, evaluators, nextWord, word)
  if (evaluator != None):
   evaluators.append(evaluator)
 while getBracketsExist(evaluators):
  pass
 evaluatedExpressionValueEvaluators = getEvaluatedExpressionValueEvaluators(evaluators)
 if (len(evaluatedExpressionValueEvaluators) > 0):
  return evaluatedExpressionValueEvaluators[0].value
 return None

def getEvaluatedExpressionValueBySplitLine ( elementNode , words ) : evaluators = [ ] for ( wordIndex , word ) in enumerate ( words ) : nextWord = '' nextWordIndex = ( wordIndex + 1 ) if ( nextWordIndex < len ( words ) ) : nextWord = words [ nextWordIndex ] evaluator = getEvaluator ( elementNode , evaluators , nextWord , word ) if ( evaluator != None ) : evaluators . append ( evaluator ) while getBracketsExist ( evaluators ) : pass evaluatedExpressionValueEvaluators = getEvaluatedExpressionValueEvaluators ( evaluators ) if ( len ( evaluatedExpressionValueEvaluators ) > 0 ) : return evaluatedExpressionValueEvaluators [ 0 ] . value return None
evaluate the expression value .