• So when you want to rename a method or class, it's easy for the environment to find every use of it by pinpointing the location in the AST.

    因此需要重新命名一个方法或者时候,开发环境容易通过AST精确定位找到方法或类被引用的每个地方。

    youdao

  • Or to use the appropriate terminology, how a parser can produce a custom element... in this case our AST objects.

    适当术语来说就是解析器如何才能产生一个定制元素(这里,就是AST对象)。

    youdao

  • The analysis API eliminates most of the challenges associated with visiting AST nodes by providing a common visitor class and abstracting the query mechanism.

    分析API通过提供一个公用访问者抽象查询机制,消除了访问AST节点相关联大部分挑战

    youdao

  • The AST is a tree representation of the source code that contains everything from variable declarations to function definitions and method invocations.

    AST源代码树形表示,它包含了变量声明功能定义方法调用的全部内容。

    youdao

  • Remember that the AST classes aren't visible outside of this package at all and that clients will (eventually) simply pass in a String representation of the expression they want evaluated.

    记住AST可见, 还有就是客户机最终传入它们求值表达式一个字符串表示

    youdao

  • To see more clearly, this distinction of when you would use a scanner vs. an AST, consider the code in Listing 10.

    清晰了解何时使用扫描程序与何时使用AST 之间差别请考虑清单 10中的代码

    youdao

  • This line visits the AST tree, starting at the compilation unit (the top-most node), and queries for a list of all method declarations.

    一行访问ast起步编辑单元(顶层节点),并且查询所有的方法声明。

    youdao

  • Now comes the other half of building a DSL: We need to build a segment of code that can take some kind of textual input and turn it into an AST.

    现在构建DSL另一半工作:我们需要构建代码可以接收某种文本输入转换成AST

    youdao

  • And with just 1, 000 people registered - down from the 1, 400 organizers said were in attendance ast year - the halls and meetings rooms had a quiet air of waiting.

    会议组织者说:“今年注册登记只有1 000,而去年则1 400人。”大厅走廊会议室今年冷清了好多。

    youdao

  • The rule that we previously examined is about as simple as a rule can get. It queries for only a single type of node in the AST tree and blindly reports all results remaining after filter.

    我们前面所介绍的规则最简单种了,查询ast树中一种类型节点并且盲目地报告所有结果。

    youdao

  • L ast week, I went to a dinner party that gave me a bout of indigestion.

    上周参加了一个晚宴,结果害得消化不良。

    youdao

  • The AST is a tree representation of the parsed source code, created by the compiler, similar to the DOM tree model of an XML file.

    AST代表已解析源代码,它编译器创建,与XML 文件DOM模型类似

    youdao

  • First, you have to consider whether a change to the AST needs to be made.

    首先必须考虑是否需要更改ast

    youdao

  • This function displays an AST with a couple of conventions.

    函数将显示一个带有几个约定AST

    youdao

  • In IDEA and Eclipse, your code looks like a text view, but the development environment is actually editing the Abstract Syntax Tree (AST).

    ideaeclipse中代码看上去一个文本视图但是开发环境实际上正在编辑AbstractSyntaxTree (ast)。

    youdao

  • Running the tests reveals that the results of the parser aren't yet in the AST types I created earlier (expr and its kin), but instead in a form consisting of Lists and Strings and such.

    运行测试表明解析器结果不是前面创建AST类型(expr亲属),而是ListString组成一种形式

    youdao

  • Tools, based on ParseTree, already exist, such as Ruby2Ruby which can turn an AST back into Ruby source code; useful if a tool wants to modify an AST and then output it as Ruby source.

    已有基于分析树的工具比如Ruby2Ruby可以AST转换Ruby源代码如果工具修改AST输出Ruby源代码,很有用

    youdao

  • A lack of a pure Ruby parser has been negligible for some time in Ruby's history, since getting the Abstract Syntax Tree (AST) of some Ruby code was possible with utilities such as ParseTree.

    因为可以使用类似语法分析(ParseTree)的通用方法来对Ruby代码进行分析并获得抽象语法树(Abstract Syntax Tree),所以Ruby历史上一定时期内,ruby语法分析器缺失忽视了。

    youdao

  • Because you have defined this extension to be invoked when the transformation is processing a UML class, you can safely type the target object to an Abstract Syntax Tree (AST) TypeDeclaration object.

    因为转换处理UM l时,已经定义调用扩展,所以您可以安全地AbstractSyntaxTree (ast)TypeDeclaration对象输入目标对象。

    youdao

  • The JRuby AST is the output of the parser and is just a tree representation of the source code, containing different kinds of nodes, for example for classes, methods, variables.

    JRubyAST解析器输出结果仅仅源代码树形表示包含不同种类节点例如方法变量

    youdao

  • Before getting too deep into the AST definition, let me provide a quick overview of what case classes are.

    深入AST定义之前,简要概述一下什么是case类。

    youdao

  • An annotation handler is a class that implements a couple of Lombok interfaces and the AST transformation logic - aka code generation.

    注释处理程序实现一对Lombok接口以及转换逻辑aka代码生成

    youdao

  • An AST is a tree representation of source code, and is necessary for tools that need to know about the structure of the code.

    AST代表Ruby源码,分析器工具必须了解代码结构

    youdao

  • The AST contains a single IASTDeclarationUnit that represents the main function.

    AST包含了代表main函数的单个的IASTDeclarationUnit。

    youdao

  • Let's take a look at the AST generated in the above examples.

    我们来看看上面示例生成ast

    youdao

  • The pure Ruby parser now offers a chance to change that - a Ruby IDE or other tool, can now get at a Ruby AST without getting locked in.

    ruby语法分析器提供改变这种情况的机会——Ruby IDE(或者其他工具)可以获得Ruby的抽象语法树,同时避免被绑定到特定的语法分析器实现上。

    youdao

  • Next, we need an evaluation function that will take the AST and evaluate it to a numerical value. This is pretty straightforward to write, given the power of pattern matching.

    接下来我们需要一个函数将会获取AST出它数字值。

    youdao

  • In my code the evaluation is performed by each AST node itself, but we may use also a tree walker to walk each node and execute it based on its type.

    代码中,计算每个AST结点自己执行我们可能使用一个遍历每个结点,基于的类型来执行。

    youdao

  • They collect ast amounts of sequence fragments, which contain genetic information of thousands of species forming communities that colonise a certain habitat.

    他们收集海量序列片段其中包括数千来源于具有拓殖特定栖息地的生物群体的遗传信息

    youdao

  • It was so that they could have a "look"that the six blindmen asked the driver to stop the be ast.

    六个盲人要求赶象人让这头巨兽停下来以便他们看一看”。 可强调

    youdao

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

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

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