有一件事我已经考虑了很久,却一直没去做,那就是将Bash的解析器重写为递归下降(recursive-descent)的方式,以取代bison。以前,我以为为了遵守Posix标准,这件事就非得做,但是后来我只需要少量修改就解决了这个问题。
基于28个网页-相关网页
recursive descent parser 递归下降解析器 ; [计] 递归下降分析程序
recursive-descent parsing 递归下降分析
recursive descent method 递归下降分析法
recursive descent analysis 递归下降分析法
In computer terms, this rule is also known as recursive tree descent.
以计算机术语表述,这条规则也可以称作递归树下行。
It is caused by recursively descending a composite data structure in such a way that, sometimes, more than one step in the descent is taken in a single recursive call.
它是由递归下行复合数据结构引起的,这种下行方式有时在一次递归调用中要下行多级。
Typically, we store temporary variables, generated by our semantic actions, in our closure variables, as a means to pass information up and down the recursive descent.
典型地,我们在闭包里储存由我们的语义动作产生的临时变量,以之作为在递归下降中向上或向下传递信息的方法。
应用推荐