Publication: Syntax Error Search Using Parser Combinators
Дата
2021
Авторы
Kuznetsov, M.
Firsov, G.
Journal Title
Journal ISSN
Volume Title
Издатель
Аннотация
© 2021 IEEE.Parser combinators is a popular approach to parsing sequences generated by context-free grammars, which can be specialized data formats (e.g. JSON, YAML), markup languages like XML or HTML. At the same time, this approach is rarely used for parsing programming languages.The purpose of this paper is to study the application of parser combinators for programming languages processing, and more precisely for searching of syntax errors. The method that had been developed during this research was compared with an algorithm of syntax analysis of programming languages using parser-generators. Parser combinator takes less time on average to find a syntax error in the source code. Its average time complexity is linear with respect to the length of the input sequence, while the parser generator has an average quadratic complexity. Moreover, a parser combinator requires less memory than a parser generator.These results can be used for building intelligent code completion tools for fast syntax error detection.
Описание
Ключевые слова
Цитирование
Kuznetsov, M. Syntax Error Search Using Parser Combinators / Kuznetsov, M., Firsov, G. // Proceedings of the 2021 IEEE Conference of Russian Young Researchers in Electrical and Electronic Engineering, ElConRus 2021. - 2021. - P. 490-493. - 10.1109/ElConRus51938.2021.9396311
URI
https://www.doi.org/10.1109/ElConRus51938.2021.9396311
https://www.scopus.com/record/display.uri?eid=2-s2.0-85104718878&origin=resultslist
http://gateway.webofknowledge.com/gateway/Gateway.cgi?GWVersion=2&SrcAuth=Alerting&SrcApp=Alerting&DestApp=WOS_CPL&DestLinkType=FullRecord&UT=WOS:000669709800110
https://openrepository.mephi.ru/handle/123456789/24021
https://www.scopus.com/record/display.uri?eid=2-s2.0-85104718878&origin=resultslist
http://gateway.webofknowledge.com/gateway/Gateway.cgi?GWVersion=2&SrcAuth=Alerting&SrcApp=Alerting&DestApp=WOS_CPL&DestLinkType=FullRecord&UT=WOS:000669709800110
https://openrepository.mephi.ru/handle/123456789/24021