update parser

This commit is contained in:
Christoph Brandau
2025-07-22 18:41:20 +02:00
parent 7984b1648c
commit 64fa802cd6
3 changed files with 302 additions and 0 deletions
+9
View File
@@ -0,0 +1,9 @@
class _Word:
def __init__(self):
self.segements = []
self.current_segment = ""
self.current_start = None
def add_tok(self, tok):
if self.current_start is None:
self.current_start = tok.value[1]