lua-users home
lua-l archive

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

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