On parsing LL-languages
Usually, a parser for an LL(k)-grammar G is a deterministic pushdown transducer which produces a leftmost derivation for a given input string x IMOSL(G). Ukkonen (JCCS 26(1983)153-170) has given a family of LL(2)-grammars proving that every parser for these grammars has exponential size. If we add t...
Gespeichert in:
Veröffentlicht in: | Theoretical computer science 2001-09, Vol.267 (1-2), p.49-59 |
---|---|
1. Verfasser: | |
Format: | Artikel |
Sprache: | eng |
Schlagworte: | |
Online-Zugang: | Volltext |
Tags: |
Tag hinzufügen
Keine Tags, Fügen Sie den ersten Tag hinzu!
|
Zusammenfassung: | Usually, a parser for an LL(k)-grammar G is a deterministic pushdown transducer which produces a leftmost derivation for a given input string x IMOSL(G). Ukkonen (JCCS 26(1983)153-170) has given a family of LL(2)-grammars proving that every parser for these grammars has exponential size. If we add to a parser the possibility to manipulate a constant number of pointers which point to positions within the constructed part of the leftmost derivation and to change the output in such positions, we obtain an extended parser for the LL(k)-grammar G. Given an arbitrary LL(k)-grammar G, we will show how to construct an extended parser of polynomial size manipulating at most k super(2) pointers. copyright 2001 Elsever Science B.V. All rights reserved. |
---|---|
ISSN: | 0304-3975 1879-2294 |
DOI: | 10.1016/S0304-3975(00)00295-4 |