apache / daffodil-vscode

Apache Daffodilâ„¢ Extension for Visual Studio Code
https://daffodil.apache.org/
Apache License 2.0
11 stars 19 forks source link

State maintains the start position and length (in bits) of every element in the infoset #791

Open nlewis05 opened 1 year ago

nlewis05 commented 1 year ago

Have a parse that would read the richer infoset representation that exposes this information for use by the GUI opposed to dumping the xml

lrbarber commented 5 months ago

This could be an extra data view in the data editor that shows the current bit location of the parser in addition to the way it currently shows the current byte. Alternatively, this information could be added to the output infoset with each item added. This would pollute the data file with extra information that would prevent any attempt to unparse, but could help diagnose issues with the schema not having the correct bit length/position.