Let's now turn to the parse function, which is arguably the most important routine in the Spirit framework.
让我们看一看parse函数,它实际上是Spirit框架中最重要的例程。
For each value in storage, you once again use the JSON.parse function to parse the string back into an object.
对于存储中的每一个值,我们再次使用JSON . parse函数来将字符串解析成为一个对象。
If you're familiar with parsing, you'll quickly realize that the second argument to the parse function is equivalent to providing a BNF.
如果熟悉解析的话,将很快就明白parse函数的第二个参数相当于提供了一个BNF。
With this method, you parse your arguments to your function and do your calculation.
使用此方法,您可以解析函数的参数并执行计算。
Given the parse tree, you apply the algorithm in Listing 3 to compute the transition function.
给定解析树,可以应用清单3中的算法来计算转换函数。
By default, the actions in a function body are only performed on a final parse.
默认情况下,函数体中的动作只作用于最终解析。
We use the STR function to parse the multi-line string literal.
我们使用了str函数来解析这个多行字符串。
As you become familiar with RequisitePro, you can learn more advanced tasks, such as how to parse and define requirements from within the document using a single import function.
随着对RequisitePro的熟悉,可以学习更高级的任务,例如如何只用一个导入功能解析和定义文档中的需求。
Usually, using SimpleParse means generating a parse tree in one function call, then traversing this tree in separate code.
一般来说,使用SimpleParse就意味着在一个函数调用中生成一个解析树,然后在分开的代码中遍历这个树。
You can control white space recognition (that separates parse symbols) by defining the reserved d_whitespace() function; this enables you to tokenize however you like.
您可以通过定义保留的 d_whitespace()函数来控制空格的识别(它分离解析符号);这样就使得您可以随意使用标记。
Most languages parse if statements and function calls in basically the same way.
大多数语言都以基本上相同的方法来解析if语句和函数调用。
Note that despite the name simplexml_load_file , this function will indeed parse an XML document at a remote HTTP URL.
要注意,虽然名称为simplexml_load _ file,该函数实际上解析远程HTTPURL上的xml文档。
This example is only storing string data, so arguably you can simply append it to a longer string and call a simple function in the CalculatorHandler, which in turn can parse it out.
本例只存储字符串数据,所以您可以简单地将之附加到一个较长的字符串后面,并调用Calculator Handler中的一个简单函数,然后该函数可以将之解析出来。
The setUp function prepares the test fixtures used throughout the tests, in this case just the path to the test RSS file you'll parse in the test function.
setup函数负责准备整个测试过程中需要使用的测试装置,在本例中只有测试用的RSS文件的目录,测试函数将对其进行解析。
That load-schemas-by-URI function USES the XPath doc function to read and parse a schema document located at a specified URI.
load - schemas - by - URI函数使用XPathdoc函数读取和解析位于特定uri的模式文档。
My format() method will return the jQuery object, and even though the parse() method will not return the jQuery object, I have documented it in many places that this function breaks the chain.
我的format()方法将返回jQuery对象,虽然我的parse() 方法没有返回 jQuery 对象,但我在很多地方都注明该函数打破了链条。
You parse the document in the onreadystatechange function of the XMLHttpRequest object used to make the Ajax call.
您解析用于进行Ajax调用的XMLHttpRequest对象的onreadystatechange函数中的文档。
You can also load data from an external URL with the open function. For example, this statement prepares to parse one of my Atom feeds.
还可以使用open函数从外部URL载入数据。
Zorba also includes functions to parse JSON-encoded data, and return it in an XML format. Listing 28 has an example of using Zorba's json function to return an XML representation of a json packet.
Zorba还包含解析用JSON编码的数据的函数,并用xml格式返回数据。
If it couldn't parse even a single RSS feed item, then this function returns false.
若它不能解析其中的任意一个rss提要条目,该函数则会返回false。
Google reiterated on Thursday that the tool is intended to help programmers to find coding examples and obscure function definitions, not parse for flaws.
Google在周四重申,该工具目的是帮助程序员寻找示例代码和模糊的函数定义,而非为搜寻漏洞。
In the XML, each matrix cell gets its location defined by references to two headers: the horizontal and the vertical. In the processCell function, we first parse the XML file to
在XML 中,每个矩阵单元格位置通过引用两个标题定义:水平的和竖直的。
How to access parse error in runtime-created function in PHP?
如何访问在运行时解析错误PHP创建的函数?
Write getting and parsing configuration file data function to parse information of configuration correctly according to the format of configuration information coding.
编写读取和解析配置文件函数,准确按照组态信息编码格式解析每一项配置信息;
Write getting and parsing configuration file data function to parse information of configuration correctly according to the format of configuration information coding.
编写读取和解析配置文件函数,准确按照组态信息编码格式解析每一项配置信息;
应用推荐