在函数式语言中,程序被定义成由其他函数组成的函数,函数求值形成最终的结果。
In a functional language, a program is defined as a function composed of other functions, the evaluation of which leads to the final result.
第一个类型求值程序访问器是在通用“on”函数中生成的。
The first type evaluator visitor is generated in the generic "on" function.
举例来说,在 清单 18 中,我们重写了 concat 求值程序,以便查找具有全部字符串(函数 2)的 :concat 节点(函数 1),随后对 concat 求值(函数 3)。
For example, in Listing 18, we rewrote our concat evaluator to look for :concat nodes (function 1) that have all strings (function 2) and then evaluate the concat (function 3).
应用推荐