game-writing saga shows how the authors put together a configuration file parser for the game using lex and yacc.
游戏编写报告的SDL 用法,第 4 部分:lex和yacc 构建用于脚本和 GUI 设计的语法分析器 (developerWorks,2000 年 5 月)展示了作者如何使用 lex 和 yacc 为 游戏整合出一个配置文件解析器。
I'm talking to the SpecFlow team about collaborating with Cucumber, and it looks like we're going to use the same feature file parser.
我和SpecFlow小组谈到与Cucumber的合作,我们很有可能使用相同的文件分析器。
The modules that designed and implemented by author include task import module, log file parser module, log file analysis module and report module.
设计并实现了日志分析子系统中任务导入、日志解析、日志分析以及报表等功能模块。
The STMM log file parser has the goal of filtering out important tuning information and formatting it so that the evolution of the memory configuration can be easily discerned.
STMM日志文件分析器的目的是过滤出重要的调优信息并进行格式化,从而便于了解内存配置的修改过程。
Attempting to read the file directly into an XML parser results in an error.
如果试图将文件直接读入一个xml解析器,就会导致错误。
You can step through the emitted parser code at runtime to see what it's actually doing and adjust the grammar file accordingly.
您可以在运行时单步遍历产生的解析器代码,以便查看它到底在做什么,并相应地调整语法文件。
A few good heuristics based solely on the first few bytes will tell you if a file or stream is likely to be XML, and therefore worth checking further with a parser.
一些基于最初几个字节的较好的启发式方法可以告诉您,一个文件或流是否可能是XML,是否值得让解析器作进一步检查。
The elements used must be defined in a schema first; the parser checks this schema, signaling any discrepancies with the parsed file.
使用的元素必须首先在模式中定义,解析器检查该模式就可以发现与解析文件不一致的地方。
Like any software reading a file, the parser is built around a reading loop: a loop that progresses through the file.
和读取文件的任何软件一样,解析器也是围绕着读循环(读入文件的循环)创建的。
Issue 1 — for a parser to read the XML accurately, the content stored within the XML file had to format entities accordingly.
第1个问题—为使解析器精确读取XML,存储在XML文件中的内容必须对实体进行相应地格式化。
In the past, to revalidate your document once it had been modified you had to save it to a file and read it back with a validating parser.
过去,要在文档修改后对它进行重新验证,必须将它保存为一个文件,再用验证解析器读回去。
Alternatively you can use a more complex delimiting technique which is to use a message parser to determine the end of a record from an input file.
另外,您还可以利用更复杂的分隔技术,使用消息解析器确定输入文件的记录的结束。
After that, the script reads in the file and sends off chunks of the file to the parser.
之后,脚本读取文件并把文件的大块内容发送到解析器。
You'll have to write your own grammar for the file format, however, and then develop your own parser to read it.
您必须为文件格式自行编写语法,随后开发自己的解析器来阅读它。
This file needs to contain the class name of the parser configuration.
该文件需要包含解析器配置的类名。
The parser code receives a JSON file as input and returns a data dictionary (or an array) containing all the objects described inside the JSON file.
解析器代码接收一个JSON对象作为输入并返回一个数据字典(或一个数组),包含JSON文件中介绍的所有对象。
An file format parser implementing parts of ISO 14496-12.
实现了部分ISO 14496-12的文件格式解析器。
These files contain the actual parser code; the .nocache.js file detects which browser is in use and then calls out to the appropriate .js script.
这些文件包含实际的分析器代码;.nocache.js文件先检测使用的是哪个浏览器,然后再调用相应的 .js脚本。
If many documents need to be parsed, it would be beneficial to use the String-Set or File-Set option in the parser step of the assembly and partition the documents in the stages before the XML stage.
如果需要解析多个文档,使用程序集的分析器步骤中的String -Set或File - Set选项并在XML stage之前对stages中的文档分区,将会大有裨益。
However, there is an experimental Python source code parser that treats a Python source file as a document tree.
然而,有一种实验性的python源代码解析器,它将python源文件作为文档树处理。
The first section of a yacc file defines the objects that the parser will manipulate and generate.
yacc文件的第一部分定义了解析器将要处理和生成的对象。
In Figure 2, instead of writing to a file, the application calls the processor's ContentHandler directly, effectively simulating the parser.
在图2中,应用程序并没有写到文件中,而是直接调用处理器的ContentHandler,有效地模拟了语法分析器。
A SAX (Simple API for XML) parser is a single-pass XML reader that takes a well-defined XML file and produces key events, such as tags, attributes, and character text.
1sax (SimpleAPIforXML)解析器是单向的XML阅读器,获得定义明确的XML文件并生成关键事件,例如标签、属性,和字符文本。
The parser reads from one .dia file and writes to an SQL file and a C++ source file.
该解析器从一个 .dia文件中读取数据,并将其写入一个SQL 文件和一个 C++源文件中。
To read the DB2 trace format, you must provide the parser for the DB2 trace file format (the domain specific language). Two of the options you have are.
要读取DB2跟踪格式,您需要为DB 2跟踪文件格式提供解析器(领域特定语言)。
As long as a JAR file that contains this file appears before Xerces' JAR files, the parser will use the new parser configuration.
只要包含该文件的JAR文件出现在Xerces的JAR文件之前,解析器就会使用新的解析器配置。
The rc (control) file syntax includes optional `noise' keywords that are entirely ignored by the parser.
rc(fetchmail用户配置)文件语法中包含了一些完全不需解析的,可选的“噪音”关键词。
You could build an Index view using the parser described in Part 3, but it would have to parse every source file in the CDT workspace whenever any code is modified.
可以使用在第3部分中描述过的解析器来构建index视图,但一旦任何代码进行了修改,该视图就不得不解析CDT工作空间中的每个源文件。
You could build an Index view using the parser described in Part 3, but it would have to parse every source file in the CDT workspace whenever any code is modified.
可以使用在第3部分中描述过的解析器来构建index视图,但一旦任何代码进行了修改,该视图就不得不解析CDT工作空间中的每个源文件。
应用推荐