> The parser would reserve one stack slot above the scanner table
> that would be kept as nil.
> It would act as temporary anchor for 'kcache' table before the
> 'kcache' is inserted into the scanner table (the table itself is a key).
Correction,
the parser needs no extra stack slot,
the anchor would be the current stack top as it would be
removed promptly (after insertion into scanner table)
before the next call to reader.
Reserving a stack slot would not be so trivial as lexer would
need to store offset in case stack changes,
but maybe it would prevent very rare cases where 'lua_load' would
be the cause of stack overflow if reader abuses the Lua stack.
However maybe EXTRA_STACK takes care of this.
--
Jure