Enhancing the LR Parsing Strategy Using Incremental GPLR Parsing Method

Authors

  • Mouiad Abid Hani Department of Computer Science /College of Education/ Thi-Qar University
  • Methaq Ibraheem Hashim Department of Computer Science/College of Education/ Thi-Qar University

Keywords:

Generalized Piecewise LR(1) GPLR (1), Chomsky Normal Form (CNF), Context-Free Grammar (CFG) Integrated Development Environment (IDE), Look-ahead LR(1) (LALR(1)), Deterministic Finite State Automata (DFSA), Cocke-Younger-Kasami (CYK)

Abstract

Parsers in modern integrated development environments (IDEs) for generalpurpose languages are virtually all of ad hoc, recursive descent variety. While such
parsers have many disadvantages when compared with machine-generated LALR(1)
parsers but they have two major good qualities: they are not restricted to any finite of
lookahead, and in IDE, they can re-parse parts of a file as they change rather than reparsing the entire file. Theoretically, both of these two capabilities can be achieved
through variations of the traditional LR parsing techniques, but the traditional LR
parsing methods still suffer two irresolvable problems; which are shift-reduce and
reduce-reduce conflicts. In this research, we are trying to solve these two drawbacks
with preserving the capabilities of the traditional LR parsing techniques. This has
been achieved by employing the generalized piecewise LR parsing (GPLR) technique
instead of the traditional LR techniques.

Downloads

Published

2009-05-14

Issue

Section

Articles

How to Cite

Enhancing the LR Parsing Strategy Using Incremental GPLR Parsing Method. (2009). University of Thi-Qar Journal of Science, 1(4), 83-106. https://jsci.utq.edu.iq/index.php/main/article/view/222