Journal of the Korean Institute of Telematics and Electronics B (전자공학회논문지B)
- Volume 31B Issue 4
- /
- Pages.9-17
- /
- 1994
- /
- 1016-135X(pISSN)
An Efficient Incremental LR Parsing Algorithm
효율적인 점진적 LR 파성 알고리즘
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