stevedlawrence commented on issue #615: URL: https://github.com/apache/daffodil-vscode/issues/615#issuecomment-2166446426
Yeah, that doc is very confusing. The saved-parser is not XML so using a .xml extension is probably a bad idea and easy to confuse with the actual schema. We should probably fix that doc. There is not really an official standard extension, but the `packageDaffodilBin` command in the sbt-daffodil plugin gives saved parsers a name of `<format-name>-daffodilXYZ.bin`, where `XYZ` is the version of Daffodil used to build the saved parser. So we are starting to use that convention, but nothing enforces it at the moment. One option is to look at the first handful of bytes of the file. A saved parser starts with the ascii string `DAFFODIL-<version>`, followed a NUL character, where `<version>` is the version of Daffodil the saved parser was built with. So you could look at the first handful of bytes looking for "DAFFODIL", or maybe even extract the full string up until the NUL char if that version information would be useful. For example, `head -1z foo-daffodil380.bin` would output `DAFFODIL-3.8.0`. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
