7 research outputs found
Two iteration theorems for the LL(k) languages
AbstractThe structure of derivation trees over an LL(k) grammar is explored and a property of these trees obtained which is shown to characterize the LL(k) grammars. This characterization, called the LL(k) Left Part Theorem, makes it possible to establish a pair of iteration theorems for the LL(k) languages. These theorems provide a general and powerful method of showing that a language is not LL(k) when that is the case. They thus provide for the first time a flexible tool with which to explore the structure of the LL(k) languages and with which to discriminate between the LL(k) and LR(k) language classes.Examples are given of LR(k) languages which, for various reasons, fail to be LL(k). Easy and rigorous proofs to this effect are given using our LL(k) iteration theorems. In particular, it is proven that the dangling-ELSE construct allowed in PL/I and Pascal cannot be generated by any LL(k) grammar. We also give a new and straightforward proof based on the LL(k) Left Part Theorem that every LL(k) grammar is LR(k)
Iterációs Lemmák a Formális Nyelvek Elméletében
A dolgozat tĂ©mája reguláris Ă©s környezetfĂĽggetlen nyelvekre vonatkozĂł iteráciĂłs lemmák ismertetĂ©se, összehasonlĂtása.B
Intercalation properties of context-free languages
Context-freedom of a language implies certain intercalation properties known as pumping or iteration lemmas. Although the question of a converse result for some of the properties has been studied, it is still not entirely clear how these properties are related, which are the stronger ones and which are weaker;Among the intercalation properties for context-free languages the better known are the general pumping conditions (generalized Ogden\u27s, Ogden\u27s and classic pumping conditions), Sokolowski-type conditions (Sokolowski\u27s and Extended Sokolowski\u27s conditions) and the Interchange condition. We present a rather systematic investigation of the relationships among these properties; it turns out that the three types of properties, namely pumping, Sokolowski-type and interchange, above are independent. However, the interchange condition is strictly stronger than the Sokolowski\u27s condition;Intercalation properties of some subclasses of context-free languages are also studied. We prove a pumping lemma and an Ogden\u27s lemma for nonterminal bounded languages and show that none of these two conditions is sufficient. We also investigate three of Igarashi\u27s pumping conditions for real-time deterministic context-free languages and show that these conditions are not sufficient either. Furthermore, we formulate linear analogues of the general pumping and interchange conditions and then compare them to the general context-free case. The results show that these conditions are also independent
Grammars with Restricted Derivation Trees
V tĂ©to disertaÄŤnĂ práci jsou studovány teoretickĂ© vlastnosti gramatik s omezenĂ˝mi derivaÄŤnĂmi stromy. Po uvedenĂ souÄŤasnĂ©ho stavu poznánĂ v tĂ©to oblasti je vĂ˝zkum zaměřen na tĹ™i základnĂ typy omezenĂ derivaÄŤnĂch stromĹŻ. Nejprve je pĹ™edstaveno zcela novĂ© tĂ©ma, kterĂ© je zaloĹľeno na omezenĂ Ĺ™ezĹŻ a je zkoumána vyjadĹ™ovacĂ sĂla takto omezenĂ© gramatiky. PotĂ© je zkoumáno nÄ›kolik novĂ˝ch vlastnostĂ omezenĂ kladenĂ©ho na cestu derivaÄŤnĂch stromĹŻ. ZejmĂ©na je studován vliv vymazávacĂch pravidel na vyjadĹ™ovacĂ sĂlu gramatik s omezenou cestou a pro tyto gramatiky jsou zavedeny dvÄ› normálnĂ formy. NáslednÄ› je popsána nová souvislost mezi gramatikami s omezenou cestou a nÄ›kterĂ˝mi pseudouzly. Dále je prezentován protiargument k vyjadĹ™ovacĂ sĂle tohoto modelu, která byla dosud povaĹľována za dobĹ™e známou vlastnost. Nakonec je zavedeno zobecnÄ›nĂ modelu s omezenou cestou na ne jednu, ale nÄ›kolik cest. Tento model je následnÄ› studován zejmĂ©na z hlediska vlastnostĂ vkládánĂ, uzávÄ›rovĂ˝ch vlastnostĂ a vlastnostĂ syntaktickĂ© analĂ˝zy.This doctoral thesis studies theoretical properties of grammars with restricted derivation trees. After presenting the state of the art concerning this investigation area, the research is focused on the three main kinds of the restrictions placed upon the derivation trees. First, it introduces completely new investigation area represented by cut-based restriction and examines the generative power of the grammars restricted in this way. Second, it investigates several new properties of path-based restriction placed upon the derivation trees. Specifically, it studies the impact of erasing productions on the generative power of grammars with restricted path and introduces two corresponding normal forms. Then, it describes a new relation between grammars with restricted path and some pseudoknots. Next, it presents a counterargument to the generative power of grammars with controlled path that has been considered as well-known so far. Finally, it introduces a generalization of path-based restriction to not just one but several paths. The model generalized in this way is studied, namely its pumping, closure, and parsing properties.