lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


> 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.