首页 | 本学科首页   官方微博 | 高级检索  
     


Incremental generation of LR parsers
Authors:R Nigel Horspool
Affiliation:

Department of Computer Science, University of Victoria, Victoria, B.C., Canada V8W 2Y2

Abstract:Implementation of a new compiler usually requires making frequent adjustments to grammar definitions. An incremental technique for updating the parser tables after a monor change to the grammer could potentially save much computational effort. More importantly, debugging a grammar is made easier if the grammar is re-checked for correctness after each small change to the grammar. The basic design philosophy of an incremental parser generator, and incremental algorithms for LR(0), SLR(1) and LALR(1) parser generation are discussed in this paper. Some of these algorithms have been incorporated into an implementation of an incremental LALR(1) parser generator.
Keywords:Compilers  Compiler tools  Program development environments  LR parsing  LALR(1)  SLR(1)  Incremental algorithms  Grammar debugging
本文献已被 ScienceDirect 等数据库收录!
设为首页 | 免责声明 | 关于勤云 | 加入收藏

Copyright©北京勤云科技发展有限公司  京ICP备09084417号