Hi,
There are no multiline comments any more (CommentBlock is removed),
just comment lines. It is easy to collect the comment lines while
iterating over the parser or reader items. The rationale behind
removing multiline comments was that this preserves more
information of the structure of the original code, see also issue 8.
Indeed, 627-644 is a dead code, I just kept it there in case we
change our minds..
I am 0 on whether to keep comment lines separate or collect them
to a block. Comments do not matter when parsing fortran codes for
actual fortran statements. On the other hand, in fortran code
rewriting applications the organization of comments matter.
Currently fparser only partially keeps the comment location information
(line numbers but not column numbers), fixing this means a careful
revision of the readfortran.py code.
As TakaoKotani notes, reproducing the structure of the original code
would be very useful. For example, that would provide a robust way to
test fparser correctness. On the other hand, fparser correctness
can also be tested by compiling the original code and fparser
generated code --- if in both cases a fortran compiler produces
the same object codes then fparser is doing the right thing.
Pearu