[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Translating Lua keywords
- From: Luiz Henrique de Figueiredo <lhf@...>
- Date: Thu, 18 Apr 2013 19:07:49 -0300
> It is simple, even trivial to change `llex.c` to accept other keywords
> _instead of_ the standard ones. It's harder, and in fact I have not
> even tried, to accept other keywords _as aliases of_ the standard ones.
I haven't tried but I think adding aliases is just adding the words to
luaX_tokens and possibily repeating the enum values in enum RESERVED
in llex.h. The only drawback is that error messages will use the first
occurrence of the keyword in luaX_tokens.