refacxtor the code

This commit is contained in:
Christoph Brandau
2025-08-12 07:15:18 +02:00
parent 72f894b05d
commit 8fb98d2f40
3 changed files with 214 additions and 198 deletions
+5
View File
@@ -26,6 +26,11 @@ class Token:
tok_type: str = ""
tok_modifiers: List[TokenModifier] = attrs.field(factory=list)
@property
def length(self) -> int:
"""Compatibility alias for misspelled 'lenght' field."""
return self.lenght
TOKEN_TYPES = [
"keyword",