函数性语言被频繁地用来构建编译器或者解析语言的工具,因为语言通常是用语法树表示的。
Functional languages are used frequently for building compilers or tools that parse languages because languages are normally expressed as syntax trees.
我们可以从完整的文件创建语法树,也可以从松散的声明或者表达式生成它。
A syntax tree can be created from an entire file or just a loose statement or expression.
纯ruby语法分析器提供了改变这种情况的机会——Ruby IDE(或者其他工具)可以获得Ruby的抽象语法树,同时避免被绑定到特定的语法分析器实现上。
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的抽象语法树,同时避免被绑定到特定的语法分析器实现上。
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.
应用推荐