摘要
本文给出了一个骨架:如何用类以及类分层来建造一个递归下降扫描程序。使用类来组织Parser的实现有很多优点,促使程序易于理解和修改,能方便地实现从BNF生成规则到Parser生成的自动处理。
This paper gives a brief sketch of how to build a recursive descent parser using classes and a hierarchy of classes.The advantages gained from the use of classes to organize the implementation of the parser, making it easier to understand and modify. It is fanly to automate the process of generating parser from BNF style production rules.
出处
《小型微型计算机系统》
CSCD
北大核心
1996年第10期16-23,共8页
Journal of Chinese Computer Systems
基金
江苏省自然科学基金