INTEGRATING LARGE LANGUAGE MODELS INTO A FORMAL LANGUAGE LEARNING PLATFORM
The article investigates the possibility of integrating large language models into an educational platform for formal languages. Recent publications in the field of teaching formal languages are analyzed, and the main directions of these studies are identified: the characteristics of automated generation tools, the representation of formal language grammars, and natural language processing. The feasibility of using left-to-right parsing with leftmost derivation (LL) in teaching students in the field of information technology is described. The specific features of this parsing method are investigated, and its components, namely the FIRST and FOLLOW sets and the parsing table, are described. The specific features of using Backus-Naur Form (BNF) as a notation for the formal description of grammars are investigated. An architectural model of an information system for multilevel validation of grammars represented in BNF is proposed, which involves sequential lexical and syntactic analysis followed by the use of a large language model. For the initial processing of input rules, the use of a lexical analyzer developed in Python using regular expressions and a syntax analyzer based on the LL(1) method is proposed. A grammar defining the structure of BNF input is described. The possibility of using the proposed architecture to process a domainspecific programming language-relational algebra - is demonstrated. An example of processing the syntax of operators of the aforementioned formal language is provided. The possibility of integrating the Gemini 3 Flash Preview model via the Gemini API to analyze grammars after their preliminary validation by lexical and syntactic analyzers is considered. The possibility of using a large language model to provide explanations of errors and generate recommendations for correcting production rules is considered. The possibility of obtaining processing results in JSON format suitable for subsequent use by other software tools is demonstrated. Prospects for extending the platform with machine learning tools for error classification and the analysis of learning difficulties are identified. It is noted that LLM-generated recommendations require additional verification and cannot fully replace an instructor.
Authors
- Mykola T. Fisun (ORCID: https://orcid.org/0000-0003-1297-6230)
- Ihor Kandyba
Institutions
- Petro Mohyla Black Sea National University (UA)
Publication Details
- Journal
- Middle European Scientific Bulletin
- Published
- 2026-11-28
- DOI
- https://doi.org/10.65237/2336-3630-2026-11(2)-12
- Primary Topic
- Natural Language Processing Techniques
- Type
- article
- Field-Weighted Citation Impact
- 0.00