|
@ -4,11 +4,17 @@ app = Window() |
|
|
app.mainloop() |
|
|
app.mainloop() |
|
|
|
|
|
|
|
|
#from misc.parser import * |
|
|
#from misc.parser import * |
|
|
#from misc.tokenizer import * |
|
|
#from misc.tokenizer import *# |
|
|
|
|
|
|
|
|
#while True: |
|
|
#while True: |
|
|
# calcul = str(input("Entrez votre calcul en NPI : ")) |
|
|
# calcul = str(input("Entrez votre calcul en NPI : ")) |
|
|
# tokens = tokenize(calcul) |
|
|
# tokens = tokenize(calcul) |
|
|
|
|
|
# for t in tokens: |
|
|
|
|
|
# print(t.val) |
|
|
# npi = shutting_yard(tokens) |
|
|
# npi = shutting_yard(tokens) |
|
|
|
|
|
# print(npi) |
|
|
# expression = npi2tree(npi) |
|
|
# expression = npi2tree(npi) |
|
|
|
|
|
# print("-----------------------") |
|
|
|
|
|
# print(expression) |
|
|
|
|
|
# print("-----------------------") |
|
|
# print(expression.evalue()) |
|
|
# print(expression.evalue()) |