(
type: int, token: str, srow_col: Coord, erow_col: Coord, line: str
)
| 260 | |
| 261 | |
| 262 | def printtoken( |
| 263 | type: int, token: str, srow_col: Coord, erow_col: Coord, line: str |
| 264 | ) -> None: # for testing |
| 265 | srow, scol = srow_col |
| 266 | erow, ecol = erow_col |
| 267 | print(f"{srow},{scol}-{erow},{ecol}:\t{tok_name[type]}\t{token!r}") |
| 268 | |
| 269 | |
| 270 | if __name__ == "__main__": # testing |