• Two of the most useful items will be the Child and Adjacent Sibling combinators.

    两个最有项目Child子adjacent Sibling相邻兄弟选择符。

    youdao

  • Before we get into the combinators themselves, it's a good idea to clarify just what they do differently and why that is a good thing.

    我们研究选择符之前弄清楚他们的不同为什么它们东西的原因是个不错主意

    youdao

  • In the meantime, let's explore Scala's third option for building parsers: parser combinators, built entirely from the functional side of Scala.

    同时我们探索Scala构建解析器的第3个选项解析器组合子(parsercombinators),它完全是从Scala函数性方面构建的。

    youdao

  • To change it to produce instances of our case class AST hierarchy (Expr objects), the return type of the combinators has to be changed to be Parser[Expr].

    更改生成caseAST层次结构实例Expr对象),组合子的返回类型必须更改Parser[Expr]。

    youdao

  • Method handles act as both function Pointers and as function combinators, allowing a built-in way to construct a call protocol flow from a caller to a callee.

    方法句柄可以同时作为函数pointercombinator允许内置的方式建立一个调用器到被调用者的调用协议

    youdao

  • If you make that change on its own, it will fail to compile; the three combinators know how to take in Strings but not how to produce Expr objects from what's parsed.

    如果自行更改编译失败三个组合子知道如何获取String知道如何根据解析的内容生成Expr对象

    youdao

  • There is, and to understand how it works, you'll need to take a short dive into how parser combinators produce non - "standard" elements (that is, not Strings and Lists).

    确实另外种方法。为了理解这种方法的工作原理需要研究一下解析器组合子是如何产生标准”的元素的(即不是StringList)。

    youdao

  • That's it for now; in the next set of articles, we'll go back to visiting more of Scala's language capabilities (such as generics, because parser combinators made use of them).

    本文到此结束。在下一篇文章我们回顾scala的更多语言功能(比如泛型因为解析器组合子是它们组成的)。

    youdao

  • Parsers "combine" to provide higher and higher levels of abstraction over the concept of parsing (hence the name "parser combinators"; elements which combine together to provide parsing behavior).

    组合解析可以提供解析概念越来越高级的抽象(因此称为“解析器组合子”;组合在一起元素提供解析行为)。

    youdao

  • Parsers "combine" to provide higher and higher levels of abstraction over the concept of parsing (hence the name "parser combinators"; elements which combine together to provide parsing behavior).

    组合解析可以提供解析概念越来越高级的抽象(因此称为“解析器组合子”;组合在一起元素提供解析行为)。

    youdao

$firstVoiceSent
- 来自原声例句
小调查
请问您想要如何调整此模块?

感谢您的反馈,我们会尽快进行适当修改!
进来说说原因吧 确定
小调查
请问您想要如何调整此模块?

感谢您的反馈,我们会尽快进行适当修改!
进来说说原因吧 确定