Generalized Bottom Up Parsers With Reduced Stack Activity.
Saved in:
| Title: | Generalized Bottom Up Parsers With Reduced Stack Activity. |
|---|---|
| Authors: | Scott, Elizabeth1 e.scott@rhul.ac.uk, Johnstone, Adrian1 a.johnstone@rhul.ac.uk |
| Source: | Computer Journal. Sep2005, Vol. 48 Issue 5, p565-587. 23p. |
| Subjects: | Parsing (Computer grammar), Linguistic String Parser (Computer grammar), Recursion theory, Algorithms, Asymptotic distribution |
| Abstract: | We describe a generalized bottom up parser in which non-embedded recursive rules are handled directly by the underlying automaton, thus limiting stack activity to the activation of rules displaying embedded recursion. Our strategy is motivated by Aycock and Horspool's approach, but uses a different automaton construction and leads to parsers that are correct for all context-free grammars, including those with hidden left recursion. The automaton features edges which directly connnect states containing reduction actions with their associated goto state: hence we call the approach reduction incorporated generalized LR parsing. Our parser constructs shared packed parse forests in a style similar to that of Tomita parsers. We give formal proofs of the correctness of our algorithm, and compare it with Tomita's algorithm in terms of the space and time requirements of the running parsers and the size of the parsers' tables. Experimental results are given for standard grammars for ANSI-C, ISO-Pascal; for a non-deterministic grammar for IBM VS-COBOL, and for a small grammar that triggers asymptotic worst case behaviour in our parser. [ABSTRACT FROM PUBLISHER] |
| Copyright of Computer Journal is the property of Oxford University Press / USA and its content may not be copied or emailed to multiple sites without the copyright holder's express written permission. Additionally, content may not be used with any artificial intelligence tools or machine learning technologies. However, users may print, download, or email articles for individual use. This abstract may be abridged. No warranty is given about the accuracy of the copy. Users should refer to the original published version of the material for the full abstract. (Copyright applies to all Abstracts.) | |
| Database: | Engineering Source |
Be the first to leave a comment!