A line comment is started by two subsequent minus signs (--) and ends at the end of a line.
add "outside of a literal string or comment"
note that / or / is not recognized within literal strings!
01 parse pull input
02 / if substr(input,1,5) = "/123"
03 then call process
04 / dept = substr(input,32,5)
This is incorrect because the language processor would interpret the / that is part of the literal string
/123 as the start of a nested standard comment. It would not process the rest of the program because it
would be looking for a matching standard comment end (/).
You can avoid this type of problem by using concatenation for literal strings containing
INTERPRET processes instructions that have been built dynamically by evaluating expression.
The expression is evaluated to produce a character string, and is then processed (interpreted) just as
though the resulting string were a line inserted into the program and bracketed by a DO; and an END;.
DO; x=3 END; would cause a syntax error
MFC suggested this changed wording:
were a line inserted into the program preceded by a line 'DO;' and followed by a line 'END;'
or ---- bracketed by a 'DO;' and ';END;'. (tricky:-)
DO; x=3 ;END;