Journalartikel

Syntax checking either way


AutorenlisteKutrib, Martin; Meyer, Uwe

Jahr der Veröffentlichung2023

ZeitschriftTheoretical Computer Science

Bandnummer966

ISSN0304-3975

eISSN1879-2294

DOI Linkhttps://doi.org/10.1016/j.tcs.2023.114000

VerlagElsevier


Abstract
We consider parsers of deterministic context-free languages and study the sizes of their syntax checking components. More precisely, we allow the input processing from left to right or, alternatively, from right to left, whatever is best for the given language. As practical examples, we establish an infinite sequence of deterministic context-free languages Lk, for k & GE; 1, such that there is an exponential size trade-off between a deterministic pushdown automaton that reads its input from right to left and another one that reads its input from left to right. Concerning the constructibility of such a parser out of a given deterministic context-free language, it is shown that it is undecidable whether the reversal of a given deterministic context-free language is again deterministic context free. Related to decidability questions, it turns out that the size trade-offs between deterministic pushdown automata that represent the reversals of their accepted languages and deterministic pushdown automata that represent their accepted languages are non -recursive. That is, one can choose an arbitrarily large recursive function p, but the gain in economy of description eventually exceeds p when changing from the former system to the latter. Furthermore, we study the expressive capacity of the family of languages whose reversals are deterministic context free. Finally, we turn to the family of deterministic context-free languages whose reversals are also deterministic context free and collect several of their closure properties.& COPY; 2023 Elsevier B.V. All rights reserved.



Zitierstile

Harvard-ZitierstilKutrib, M. and Meyer, U. (2023) Syntax checking either way, Theoretical Computer Science, 966, Article 114000. https://doi.org/10.1016/j.tcs.2023.114000

APA-ZitierstilKutrib, M., & Meyer, U. (2023). Syntax checking either way. Theoretical Computer Science. 966, Article 114000. https://doi.org/10.1016/j.tcs.2023.114000



Schlagwörter


Closure propertiesDecidabilityDESCRIPTIONAL COMPLEXITYDeterministic pushdown automataExpressive capacityLANGUAGESNONDETERMINISMReversals of deterministic context-freeSyntax checking


Nachhaltigkeitsbezüge


Zuletzt aktualisiert 2025-01-04 um 23:40