[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: String access & metamethods
- From: Luiz Henrique de Figueiredo <lhf@...>
- Date: Thu, 13 Dec 2007 15:07:37 -0200
> Would it be computationally expensive to have the tokenizer generate
> three different tokens (maybe more if you want to distinguish [[]] from
> [=[]=]), and just have the parser treat them equally ?
This would defeat the goal of token filters, which is to use the Lua lexer
unchanged. Plus it would complicate filters as well. It is doable and not
expensive, but you'll have to patch the lexer. (Plus I find it ugly...)