forked from chefferk/latex_scripts
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathscripts.py
65 lines (48 loc) · 1.39 KB
/
scripts.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
from logicDB import *
from latex_to_logic import *
from logic_to_latex import *
# DEBUG
test_mode = False
def menu():
flag = True
while flag is True:
print('(0) Exit')
print('(1) Logic to LaTex')
print('(2) LaTex to Logic')
choice1 = input('Option: ')
if choice1 == '1':
print('(0) Exit')
print('(1) Proof')
print('(2) Single line')
choice2 = input('Option: ')
flag = False
elif choice1 == '2':
print('(0) Exit')
print('(1) Proof')
print('(2) Single line')
choice2 = input('Option: ')
flag = False
elif choice1 == '0':
choice2 = '0'
flag = False
else:
print('Invalid input please try again')
return choice1, choice2
def main():
if test_mode is True:
choice1 = 1
choice2 = 1
else:
choice1, choice2 = menu()
if choice1 == 1 and choice2 == 1:
print('Logic to LaTex - Proof')
# logic = swap(conversions, logic)
# logic_print(logic)
elif choice1 == 1 and choice2 == 2:
print('Logic to LaTex - Single line')
elif choice1 == 2 and choice2 == 1:
print('LaTex to Logic - Proof')
elif choice1 == 2 and choice2 == 2:
print('LaTex to Logic - Proof')
if __name__ == "__main__":
main()