Implementation of the algorithm for CF grammar testing for class LL (K)

Бесплатный доступ

The article discusses an algorithm for testing a KS grammar in the Backus-Naur form for belonging to the LL(k) subclass of grammars. This is the most "natural" class of left-sided grammars in which left-sided analysis can be implemented in a deterministic manner. They allow the construction of left-hand input-output language strings using only the knowledge of k symbols ahead of going. The implementation of the basic properties of such grammars as FIRST-FOLLOW-Sigma and the testing algorithm is considered. C # was chosen as the development language. The application is implemented on the .NET Core 3.1 platform, which allows you to create programs for various operating systems. Testing is carried out using the code XUnit library, which is one of the most popular solutions for testing on the .NET platform.

Еще

Ll(k) грамматики, функции first, follow, sigma

Короткий адрес: https://sciup.org/148322213

IDR: 148322213   |   DOI: 10.18101/2304-5728-2021-2-17-27

Статья научная