z-logo
open-access-imgOpen Access
Tunnel Parsing with counted repetitions
Author(s) -
Nikolay Handzhiyski,
Elena Somova
Publication year - 2020
Publication title -
computer science
Language(s) - English
Resource type - Journals
SCImago Journal Rank - 0.145
H-Index - 5
eISSN - 2300-7036
pISSN - 1508-2806
DOI - 10.7494/csci.2020.21.4.3753
Subject(s) - computer science , parsing , top down parsing , parser combinator , programming language , parsing expression grammar , bottom up parsing , s attributed grammar , code refactoring , top down parsing language , recursion (computer science) , grammar , tree (set theory) , rule based machine translation , context (archaeology) , natural language processing , context free grammar , artificial intelligence , l attributed grammar , linguistics , mathematics , software , mathematical analysis , paleontology , philosophy , biology
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.

The content you want is available to Zendy users.

Already have an account? Click here to sign in.
Having issues? You can contact us here
Accelerating Research

Address

John Eccles House
Robert Robinson Avenue,
Oxford Science Park, Oxford
OX4 4GP, United Kingdom