游戏编写报告的SDL 用法,第 4 部分:lex和yacc 构建用于脚本和 GUI 设计的语法分析器 (developerWorks,2000 年 5 月)展示了作者如何使用 lex 和 yacc 为 游戏整合出一个配置文件解析器。
game-writing saga shows how the authors put together a configuration file parser for the game using lex and yacc.
该方法允许您提供自己的实体解析,从而防止语法分析器使用DTD 来做这件事。
This method allows you to provide your own entity resolution, preventing the parser from using the DTD for this task.
如果将它设置为true(缺省值),则在调用ContentHandler的方法时,语法分析器将识别出名称空间并解析前缀。
When set to true (the default), the parser recognizes namespaces and resolves prefix when calling ContentHandler's methods.
因为sax语法分析器已经可以解析大多数URL,所以很少应用程序实现EntityResolver。
Because the SAX parser can resolve most URLs already, few applications implement EntityResolver.
定义出一套适宜于模式分析、语法分析及语义解析的图符程序内部存储机制;
We make use of the 2-dimensional regulating metho, and define the internal storage mechanism of the icon program to meet the need of the pattern analysis, grammatical and semantic analysis.
定义出一套适宜于模式分析、语法分析及语义解析的图符程序内部存储机制;
We make use of the 2-dimensional regulating metho, and define the internal storage mechanism of the icon program to meet the need of the pattern analysis, grammatical and semantic analysis.
应用推荐