Closed KommuSoft closed 1 year ago
Sorry, what are you talking about?
I think I get it now. But:
maybe some CLC members want to chime in: @Bodigrim
A small package on top seems like a good solution! This is more to fix the fact that a lot of applications with parsing, etc. don't seem to have a uniform way to specify a token location. This makes it harder to then parse the location back in a generic way, for example in some sort of IDE.
Maybe, but I don't see how that's the job of a filepath library. Especially since there are possibly many different designs.
This makes it more convenient to let software "talk" in a uniform format.
As separator between the file and line number, a colon (
:
) is often used, this is the same for a line number and a column number. For a range between two columns, we can use an en dash (–
), so then we got as formats:This thus introduces three extra data types, one that adds a line number, and two that depend on the former to add either a single column, or a column range.