update parser
This commit is contained in:
@@ -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]
|
||||
Reference in New Issue
Block a user