可以编写的最简单的可用代码生成器也许就是构建一个静态查找表。
Probably the simplest useful code generator you could write would be one to build static lookup tables.
perfect property:查找时间复杂度为o(1)的表条目—就是说,至多需要一个字符串比较执行静态搜索集中的关键字识别。
Perfect property: Locating a table entry requires o (1) time-that is, at most, one string comparison is required to perform keyword recognition within the static search set.
不过,查找Web页面上的静态文本通常非常有用,例如,用来验证html表或文档中显示的文本。
However, it is often very useful to find static text on a Web page, for example, to verify the text appearing in an HTML table or document.
应用推荐