lua-users home
lua-l archive

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


The message referenced proposes an implementation in C for a lexical extension which is not safe: it defines a C function using two static variables (state and level) which should be located instead in the strcuture pointed by LexState *ls. As is, the proposal would not allow the Lua parser to be used recursively (example via a Lua "load()" call).


Le dim. 18 nov. 2018 à 20:29, Luiz Henrique de Figueiredo <lhf@tecgraf.puc-rio.br> a écrit :
> There have been numerous discussions on this list for lambda
> notations. Were any of those accompanied by a patch so that one could
> try them out?

See http://lua-users.org/lists/lua-l/2010-11/msg00808.html .
Equivalent code for ltokenf should be straightforward.