可以编写的最简单的可用代码生成器也许就是构建一个静态查找表。
Probably the simplest useful code generator you could write would be one to build static lookup tables.
设想我们在com . ibm . almaden . webcal . WebCalUtils中有一个静态查找方法,如清单4所示。
Suppose we have a static lookup method in com.ibm.almaden.webcal.WebCalUtils as shown in Listing 4.
G:该选项将生成查找表并将其作为静态全局变量,而不是在查找函数内生成以隐藏该表(默认行为)。
G: This option generates the lookup table as a static global variable rather than hiding it by generating it inside the lookup function (the default behavior).
应用推荐