[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Keywords
- From: Luiz Henrique de Figueiredo <lhf@...>
- Date: Fri, 8 Oct 2010 09:08:14 -0300
> 1) A soft keyword that can be used as an identifier in all places
> where identifiers are accepted. Soft keywords are not hidden by
> variables of the same name (they occur in the grammar at places where
> no identifier is allowed).
Lua used that scheme for the "in" keyword in Lua 4.0: although it was listed
as a hard keyword in the manual, it was implemented as a soft keyword.
If you want to experiment with syntax changes in Lua, try metalua or
token filters. See http://lua-users.org/wiki/MetaProgramming