Tunnel Parsing with counted repetitions
-
Published:2020-11-03
Issue:4
Volume:21
Page:
-
ISSN:2300-7036
-
Container-title:Computer Science
-
language:
-
Short-container-title:csci
Author:
Handzhiyski NikolayORCID,
Somova ElenaORCID
Abstract
The article describes a new and efficient algorithm for parsing, called Tunnel Parsing, that parses from left to right on the basis of a context-free grammar without left recursion and rules that recognize empty words. The algorithm is applicable mostly for domain-specific languages. In the article, particular attention is paid to the parsing of grammar element repetitions. As a result of the parsing, a statically typed concrete syntax tree is built from top to bottom, that accurately reflects the grammar. The parsing is not done through a recursion, but through an iteration. The Tunnel Parsing algorithm uses the grammars directly without a prior refactoring and is with a linear time complexity for deterministic context-free grammars.
Publisher
AGHU University of Science and Technology Press
Subject
Artificial Intelligence,Computational Theory and Mathematics,Computer Graphics and Computer-Aided Design,Computer Networks and Communications,Computer Vision and Pattern Recognition,Modelling and Simulation,Computer Science (miscellaneous)
Cited by
2 articles.
订阅此论文施引文献
订阅此论文施引文献,注册后可以免费订阅5篇论文的施引文献,订阅后可以查看论文全部施引文献
1. Tunnel Parsing with Ambiguous Grammars;Cybernetics and Information Technologies;2023-06-01
2. Tunnel Parsing with the Token’s Lexeme;Cybernetics and Information Technologies;2022-06-01