DocumentCode :
624555
Title :
The extension of deterministic cancellation parser to directly handle indirect and hidden left recursion
Author :
Younessi, Omran ; Bahrololoomi, Mohamad H. ; Yazdani, Amirnaser
Author_Institution :
Univ. of Payame Noor, Sari, Iran
fYear :
2013
fDate :
5-8 May 2013
Firstpage :
1
Lastpage :
4
Abstract :
Traditional top-down parsers have both merits and constraints. Their structure is often simple and similar to the structure of the original grammar. Furthermore, they can handle empty rules but they cannot handle various types of left recursion in grammars. Transformation of left-recursive grammars during the normalization process will affect the semantic structure of the rules which is not appropriate. The bottom-up parsing methods, on the other hand, can easily handle left recursion while they are not capable of working with empty rules. The deterministic cancellation parser represented by the authors, which has a recursive-descent structure, can handle both empty rules and direct left recursion by combining top-down and bottom-up cycles during the construction of the parse tree. In fact, it employs a non-canonical approach in the parsing process. The most important struggle in this paper is to extend the original parser´s ability to handle all kinds of left recursion, including indirect and hidden left recursion, which are more complicated to be handled. The resulting parser is a deterministic cancellation parser with a recursive decent structure, which has more acceptance power, because of its capability of working with all kinds of left recursion without any need for transforming them into non left-recursive equivalents.
Keywords :
grammars; tree data structures; bottom-up parsing method; deterministic cancellation parser; direct handling; direct left recursion; empty rules; hidden left recursion handling; indirect left recursion handling; left-recursive grammar transformation; noncanonical approach; normalization process; parse tree construction; recursive decent structure; semantic rule structure; top-down parsers; Alarm systems; Computer science; Computers; Educational institutions; Grammar; IEEE Potentials; Runtime; cancellation technique; left recursion; linear time parsing; non-canonical parse tree; top-down parsing;
fLanguage :
English
Publisher :
ieee
Conference_Titel :
Electrical and Computer Engineering (CCECE), 2013 26th Annual IEEE Canadian Conference on
Conference_Location :
Regina, SK
ISSN :
0840-7789
Print_ISBN :
978-1-4799-0031-2
Electronic_ISBN :
0840-7789
Type :
conf
DOI :
10.1109/CCECE.2013.6567852
Filename :
6567852
Link To Document :
بازگشت