|
Mathematical Foundations of Informatics and Programming
An algorithm for solving the extended parsing problem
V. V. Kishkan, K. V. Safonov M. F. Reshetnev Siberian State University of Science and Technologies
Abstract:
The 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(Ng^{d^{N}})$, where $g$ and $d$ are some integers, however, the algorithm has a simple software implementation.
Keywords:
extended parsing problem, context-free language, complicity of algorithm.
Citation:
V. V. Kishkan, K. V. Safonov, “An algorithm for solving the extended parsing problem”, Prikl. Diskr. Mat. Suppl., 2020, no. 13, 108–111
Linking options:
https://www.mathnet.ru/eng/pdma512 https://www.mathnet.ru/eng/pdma/y2020/i13/p108
|
Statistics & downloads: |
Abstract page: | 89 | Full-text PDF : | 22 | References: | 13 |
|