Re: What's the best way to determine if a string is a reserved word in a C module?
[
Date Prev][
Date Next][
Thread Prev][
Thread Next]
[
Date Index]
[
Thread Index]
- Subject: Re: What's the best way to determine if a string is a reserved word in a C module?
- From: Sean Conner <sean@...>
- Date: 2020年3月31日 04:00:09 -0400
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