使用解释器模式创建一个领域语言,翻译成特殊的代码。
Use the Interpreter pattern to create a domain-specific language that you translate into specific code.
XPath解释器还包括扩展Gamma等的基本解释器模式的优化特性。
The XPath interpreter also includes optimization features that extend the basic interpreter pattern of Gamma et al.
总的来说,如果你在命令行输入scala而不输入文件名参数,解释器会运行在交互模式。
To summarize, if you type scala on the command line without a file argument, the interpreter runs in interactive mode.
这种思维模式将把您带到一个名为perlmodule的模块,它支持在Python中嵌入一个perl解释器。
This line of thinking will then lead you to a module called perlmodule, which lets you embed a perl interpreter in Python.
注意解释器启动时,它立即显示管理集,不需要调用create_device或add _ device来确定mydomain域的同步模式。
Notice that when the interpreter started, it immediately showed the managed set, without calling create_device or add_device to determine the synchronization mode for the myDomain domain.
一旦您拥有了DTD或模式以及与其相配的XML文档,就需要一个解析器来读取并解释该XML文档。
Once you have a DTD or schema and the XML document to go with it, you'll need a parser to read and interpret the XML document.
司机只需头戴一个装有16种传感器能接收脑部电磁信号的特殊小设备,当信号产生时,就会被能正确识别左或右两种特殊模式的电脑解释。
The driver then puts on the special cap with 16 sensors on it which pick up the brain’s electromagnetic signals.
清单5:shell模式下的交互式help解释器。
所以就有另一种选择了,把代码保存成脚本,然后用脚本模式让解释器来运行这些脚本。
The alternative is to save code in a file called a script and then run the interpreter in script mode to execute the script.
以上我们一直在用Python的交互模式,就是直接咱们人跟解释器来交互。
So far we have run Python in interactive mode, which means that you interact directly with the interpreter.
请注意一个(顶层)复合语句后面在交互模式下必须跟着一个空行;需要用它来帮助解释器检测输入的结束。
Note that a (top-level) compound statement must be followed by a blank line in interactive mode; this is needed to help the parser detect the end of the input.
请注意一个(顶层)复合语句后面在交互模式下必须跟着一个空行;需要用它来帮助解释器检测输入的结束。
Note that a (top-level) compound statement must be followed by a blank line in interactive mode; this is needed to help the parser detect the end of the input.
应用推荐