[DGD] Latest errors

Shentino shentino at gmail.com
Mon Apr 16 06:01:11 CEST 2012


Would allowing CR to join LF as whitespace in the grammar definition
of parse_string be better?

On Sat, Apr 14, 2012 at 11:02 AM, Shentino <shentino at gmail.com> wrote:
> On Sat, Apr 14, 2012 at 3:16 AM, Felix A. Croes <felix at dworkin.nl> wrote:
>> Stephen Spiller <steve_spiller at msn.com> wrote:
>>
>>> Makes sense.  I'll take a look.  It should handle \n and \r\n automagically.
>>
>> That's a very bad idea.  If read_file() or parse_string() handle \r\n
>> automatically, they can no longer handle binary strings, and you get
>> the same mess as on Windows.
>
> I think he meant just in line separators in the grammar.
>
> I assume that read_file() and the data argument for parse_string()
> would be interpreted as-is literally.
>
>> Regards,
>> Felix Croes
>> ___________________________________________
>> https://mail.dworkin.nl/mailman/listinfo/dgd



More information about the DGD mailing list