An algorithm for solving the extended parsing problem | Applied Discrete Mathematics. Supplement. 2020. № 13. DOI: 10.17223/2226308X/13/32

An algorithm for solving the extended parsing problem

He statement of the extended problem of parsing is being clarified: to develop a deadlock algorithm that allows one to establish whether a given monomial can be derived using the system of productions that form the grammar of a context-free programming language, and also describe all the derivations of this monomial, if they exist. The description of the monomial derivation is as follows: to determine which productions from the grammar of the language, how many times and in what order are used to derive this monomial, which is equivalent to the construction of all output trees. The paper proposes an algorithm for solving the extended problem of parsing, based on a hierarchy of marked brackets; labeling of brackets shows what productions they are assigned to, and allows you to trace the order of their use. The complexity of this algorithm is equal to O(Ngd ), where g and d are some integers, however, the algorithm has a simple software implementation.

Download file
Counter downloads: 89

Keywords

расширенная проблема синтаксического анализа, контекстно-свободный язык, сложность алгоритма, extended parsing problem, context-free language, complicity of algorithm

Authors

NameOrganizationE-mail
Kishkan V. V.Siberian State University of Science and Technology named after academician M.F. Reshetnevakishkan@mail.ru
Safonov K. V.Siberian State University of Science and Technology named after academician M.F. Reshetnevasafonovkv@rambler.ru
Всего: 2

References

Глушков В. М., Цейтлин Г. Е., Ющенко Е. Л. Алгебра. Языки. Программирование. Киев: Наукова думка, 1973.
Salomaa A. and Soitolla M. Automata-Theoretic Aspects of Formal Power Series. N.Y.: Springer Verlag, 1978.
 An algorithm for solving the extended parsing problem | Applied Discrete Mathematics. Supplement. 2020. № 13. DOI: 10.17223/2226308X/13/32

An algorithm for solving the extended parsing problem | Applied Discrete Mathematics. Supplement. 2020. № 13. DOI: 10.17223/2226308X/13/32

Download full-text version
Counter downloads: 461