An Efficient Incremental LR Parsing Algorithm

효율적인 점진적 LR 파성 알고리즘

  • 안희학 (관동대학교 전자계산공학과) ;
  • 유채우 (숭실대학교 전자계산학과) ;
  • 송후봉 (숭실대학교 전자계산학과)
  • Published : 1994.04.01

Abstract

The incremental parsing techniques are essential part of language-based environment which allow incremental construction of programs, as reparsing of modified part of the program alone enhances the system performance. A number of methods and algorithms have been proposed for incremental parsing and for the construction of incremental parsers. The purpose of this paper is to review the earlier incremental parsing algorithms which are too expensive in both time and space, and to present an efficient incremental LR parsing algorithm which is more efficient than the previous ones. In this paper, we generate automatically an extended LR parsing tables which allow the nonterminal symbols as well as terminal symbols for the input, and apply them to our efficient incremental LR parsing algorithm. Using these extended LR parsing tables. we suggest several methods to reduce its memory spaces and parsing steps as well. The algorithms described here were implemented in C language and YACC on a SUN UNIX OS, and were tested with several grammars and strings.

Keywords