How to identify a values original ksy type (e.g. u2) after parsing?
I would like to parse binaries and write the decoded data structured form and annotate the exact original type of a variable, such as `name="foo", value="42", type="u2"`.

E.g. when using generated python code, the parsed `foo` would be of type integer.
How to access the information about its original type as a 16 bit unsigned int?

Extended scope of question: 
* How do visualizers, such as ksy, which annotate the byte position of each value in the hex-dump, extract this size and position information of values?
* Do they implement an complete parser for ksy language itself or is there some basis libraries to reuse?

Thank you