Tokenizer functional, fragile parsing

This commit is contained in:
etc404
2026-04-26 19:43:50 -06:00
parent da1aba3ab9
commit 7d6b339cc6
4 changed files with 71 additions and 5 deletions
+3 -3
View File
@@ -1,12 +1,12 @@
import lisp
import reader
def main():
print("Welcome message.")
state = lisp.Lisp()
interpreter = reader.Reader()
# REPL Loop
while True:
expression: str = input("> ")
print(state.evaluate(expression))
interpreter.tokenize(expression)
if __name__ == "__main__":
main()