12 lines
202 B
Python
12 lines
202 B
Python
import lisp
|
|
|
|
def main():
|
|
print("Welcome message.")
|
|
state = lisp.Lisp()
|
|
# REPL Loop
|
|
while True:
|
|
expression: str = input("> ")
|
|
print(state.evaluate(expression))
|
|
|
|
if __name__ == "__main__":
|
|
main() |