[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Backslash-newline escape as a line continuation rather than a newline?
- From: Luiz Henrique de Figueiredo <lhf@...>
- Date: Thu, 8 Apr 2010 22:17:15 -0300
> Couldn't Lua's lexer, while reading a "-delimited string, just
> squash an embedded "<ws>..<ws>" sequence without the parser ever
> even knowing about it (where <ws> means [ \t\n])...?
It could but it gets messy because you're actually parsing a micro language:
you'd need to call get_token within get_token; not pretty.