On Sun, Mar 07, 2021 at 02:32:47PM +0800, Qian Yun wrote:
> Spent some time on this, the fix in BOOT compiler is not that
> obvious, because of the complexity of escape char at the end
> of line.
>
> Shall we simply go with ".gitattributes"?
First we need to decide what carriage return in variuos FriCAS
input files should do and check what it is doing now. In
particular, what carriage return in middle of line should do?
For Windows users we should allow carriage return at end of
line in .input files. If we implement this (I do not know
if this works now) we will have also handling for .spad
files. Then it is only natural to do it also for Boot
(and scanner code in 'boot' subdirectory is very similar
to scanner in 'interp' used for .input and .spad files).
Concerning carriage return in middle of line, we probably
should signal error in such case (or maybe treat is as
end of line for benefit of old Macs).
Setting ".gitattributes" is good idea, but will not
resolve issues with user files.
--
Waldek Hebisch