add comments

This commit is contained in:
Lafrite 2013-07-19 00:17:29 +02:00
parent b67a7a213a
commit a926e0e12a
1 changed files with 2 additions and 0 deletions

View File

@ -84,8 +84,10 @@ def computePostfixBis(postfixExp):
tokenList = postfixExp.split(" ")
# On fait le calcul jusqu'à n'avoir plus qu'un élément
while len(tokenList) > 1:
tmpTokenList = []
# on va chercher les motifs du genre A B + pour les calculer
while len(tokenList) > 2:
if isNumber(tokenList[0]) and isNumber(tokenList[1]) and tokenList[2] in "+-*/":
# S'il y a une opération à faire