Closed Reinhard-Prehofer closed 6 years ago
Thanks, fixed in fb735cf214d2a0424996b2f7f0c72716d989ac94. Added a unit test. With this fix, lines with a $ line indicator are blanked by the preprocessor, i. e. ignored by the parser.
Some refactoring in the preprocessor would be necessary to provide the original lines/compiler directives to the ASG. The implementation has to be done together with fixing issue #41.
Some programs tend to have compiler directives in the very first line of a COBOL-source, thus starting with $SET, the $ being positioned in the 7th column (like a comment). The parser should either ignore such statements - treat them like a comment (first and easys tep) or consider the semantics of the various options (some options are very "doubtful" - like NOCHECKNUM, SPZERO etc etc and even influence the runtime behaviour)