parsing strings
Ross Paterson
ross at soi.city.ac.uk
Wed Oct 8 11:51:31 EDT 2003
[trawling through old bug reports]
On Wed, Jul 30, 2003 at 06:44:52PM +0000, Iavor Diatchki wrote:
> there seems to be a problem when parsing multi-line strings:
> in the first string there is no space after the \,
> while in the second there is. i tried this on linux,
> with the july version of hugs.
>
> > probelm = "hello \
> > \world"
>
> > noproblem = "hello \
> > \world"
>
>
> the error i get is:
> "Illegal character escape sequence "\w"
I think this one is also due to your use of the C preprocessor.
The treatment of backslashes by cpp changed in recent versions of gcc.
Adding the space is now a necessary workaround.
People who don't use -F to run each source file through cpp are
unaffected, of course.
More information about the Hugs-Bugs
mailing list