4 ms·
Calligra uses this approach to parse most of the binary Microsoft Office files. The grammar for this is quite daunting. This approach has the advantage that the
by oever 10y ago
Calligra uses this approach to parse most of the binary Microsoft Office files. The grammar for this is quite daunting.
This approach has the advantage that there is clear separation between the content description and the parser generator. The parser generator can be improved separately. In Calligra this made it possible to work on speed and memory usage separately from the work of figuring out the actual file format.
https://quickgit.kde.org/?p=binschema.git&a=blob&f=src%2Fmso.xml https://quickgit.kde.org/?p=binschema.git&a=blob&f=src%2Fmso...