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