Code examination report by Michael Johnson at January 2, 2001
The set of files consisting of the list below is an unfinished
attempt to create an RTF markup parsing capability. It would
be the first step in making a RTF import filter. The code is not
a functioning set as far as I could tell. The code compiles
but does not seem to process the sample RTF file in this directory.
It gives an error message instead. I did not try a different RTF
file from a word processor. My observation is the test shell
main() is flawed. It has two input files and no output file.
I don't know if the other code functions but it is clearly
incomplete. Here is the results of my very brief investigation
of the code.
KRTFDocumentParser.cpp:
This file contains code that is a
beginning of a RTF markup command interpreter. It is merely
an outline of the process and does not recognize any RTF markup.
KRTFFileParser.cpp:
Appears to be a basic check that the input
file is in RTF format. It was probably intended as the top
level function that starts the parsing process.
KRTFHeaderParser.cpp:
Contains code to examine the RTF header.
It can only recognize the general syntax of the header and
determine where the document body begins. It cannot process
any header group.
KRTFParser.cpp:
Functions to delimit a single RTF command group.
KRTFTokenizer.cpp:
Contains functions to break down a RTF
command into tokens.
main.cpp:
A test shell for the above files. The code is flawed.
|