16 lines
283 B
Python
16 lines
283 B
Python
|
from my_parser import Parser
|
||
|
|
||
|
def main():
|
||
|
parser = Parser()
|
||
|
while True:
|
||
|
try:
|
||
|
text = input('> ')
|
||
|
except EOFError:
|
||
|
break
|
||
|
if not text:
|
||
|
continue
|
||
|
parser.parse(text.lower())
|
||
|
|
||
|
if __name__ == '__main__':
|
||
|
main()
|