Menu

#2 do not silently ignore comments

open
nobody
None
5
2010-04-09
2010-04-09
No

Consider:
$ cat contline.f
! Comments may go anywhere ...
INTEGER a
&, b ! ... even here!
&, c
END

Looking t the actions reported by '--dump' (ofp-0.8.0), a reproduction of above could would result in:
INTEGER a, b, c
END

Which is perfectly valid and equivalent to the original source - for the parser at least. A human reader might disagree.
If comments would be reported, any user of ofp could ignore them by not implementing the respective hook if they are not needed for the application at hand.

Discussion

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.