lua-users home
lua-l archive

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


It was thus said that the Great Huang Luyu once stated:
> Hi all,
> 
> I want to write a C module for Lua, which needs determine if a string is a
> reserved word. 

  What do you mean be a "reserved word"?  For Lua?  For C?  The best bet is
to just check a list of words since there aren't that many reserved words in
either language.  Lua has around 20+ words (depends upon version) and C has
around 30+ words (again, depends upon version).

  -spc