Better tree output

This commit is contained in:
John Doty 2024-05-30 08:24:36 -07:00
parent 56d24c5fb9
commit dfef449c33
2 changed files with 20 additions and 10 deletions

View file

@ -553,6 +553,5 @@ class FineTokens:
else:
col_start = self.lines[line_index - 1] + 1
column_index = start - col_start
print(
f"{start:04} {kind.value:12} {self.src[start:start+length]} ({line_index}, {column_index})"
)
value = self.src[start : start + length]
print(f"{start:04} {kind.value:12} {value} ({line_index}, {column_index})")