Enhancing the LR Parsing Strategy Using Incremental GPLR Parsing Method
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 suchparsers 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
License
Copyright (c) 2019 University of Thi-Qar Journal of Science
This work is licensed under a Creative Commons Attribution 4.0 International License.
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