Computer language notation specification through program examples
Miroslav Sabo, Jaroslav Porubän, Dominik Lakatoš, Michaela Kreutzova · 2011
It often happens that computer-generated documents originally intended for human recipient need to be processed in an automated manner. The problem occurs if analyzer does not exist and therefore must be created ad hoc. To avoid the repetitive manual implementation of parsers for different formats of processed documents, we propose a method for specification of computer language notation by providing program examples. The main goal is to facilitate the process of computer language development by automating the specification of a notation for recurring well-known language constructs often observed in various computer languages. Hence, we introduce the concept of language patterns, which capture the knowledge of language engineer and enables its automated application in the process of notation recognition. As a result, by using the proposed method, even a user less experienced in the field of computer language construction is able to create a language parser.