RNGSGLR: Generalization of the Context-Aware Scanning Architecture for All Character-Level Context-Free Languages
-
Published:2022-07-13
Issue:14
Volume:10
Page:2436
-
ISSN:2227-7390
-
Container-title:Mathematics
-
language:en
-
Short-container-title:Mathematics
Author:
Leber Žiga,
Črepinšek MatejORCID,
Mernik MarjanORCID,
Kosar TomažORCID
Abstract
The limitations of traditional parsing architecture are well known. Even when paired with parsing methods that accept all context-free grammars (CFGs), the resulting combination for any given CFG accepts only a limited subset of corresponding character-level context-free languages (CFL). We present a novel scanner-based architecture that for any given CFG accepts all corresponding character-level CFLs. It can directly parse all possible specifications consisting of a grammar and regular definitions. The architecture is based on right-nulled generalized LR (RNGLR) parsing and is a generalization of the context-aware scanning architecture. Our architecture does not require any disambiguation rules to resolve lexical conflicts, it conceptually has an unbounded parser and scanner lookahead and it is streaming. The added robustness and flexibility allow for easier grammar development and modification.
Funder
Slovenian Research Agency
Subject
General Mathematics,Engineering (miscellaneous),Computer Science (miscellaneous)
Reference45 articles.
1. Parsing Techniques;Grune,2008
2. Compilers: Principles, Techniques, and Tools;Aho,2006
3. Schrödinger's token
4. Scannerless NSLR(1) parsing of programming languages;Salomon;Proceedings of the ACM SIGPLAN 1989 Conference on Programming Language Design and Implementation,1989
5. Scannerless Generalized-LR Parsing;Visser,1997
Cited by
2 articles.
订阅此论文施引文献
订阅此论文施引文献,注册后可以免费订阅5篇论文的施引文献,订阅后可以查看论文全部施引文献