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
+12 -1
View File
@@ -1,2 +1,13 @@
class Atom:
pass
car: Atom | int | str | bool | None
cdr: Atom | None
def __init__(self, car: Atom|int|str|bool|None, cdr: Atom|None):
self.car = car
self.cdr = cdr
def setval(self, atom: Atom | int | str | bool | None):
self.car = atom
def append(self, atom: Atom):
self.cdr = atom