11 Feb
2004
11 Feb
'04
5:07 p.m.
Edwin wrote:
Incidentally, one weird part of Fractint's parser which I haven't > yet tried to emulate is that you can insert \ *in the middle of a token*, eg
x = y &\ &z
is the same as x = y && z. This is really painful to deal with in a standard lexer & is probably best handled by preprocessing the file with a regular expression.
Why is that weird? It's just an escape for a newline that allows something that is logically a single line to be broken into two lines. You are right, it's not really part of the language, and is best handled by a preprocessor. Tim