Generalized LR Parsing Algorithm for Grammars with One-Sided Contexts

被引:0
|
作者
Mikhail Barash
Alexander Okhotin
机构
[1] University of Turku,Department of Mathematics and Statistics
[2] Turku Centre for Computer Science (TUCS),undefined
来源
关键词
Formal grammars; Contexts; Conjunctive grammars; LR parsing; GLR parsing;
D O I
暂无
中图分类号
学科分类号
摘要
The Generalized LR parsing algorithm for context-free grammars is notable for having a decent worst-case running time (cubic in the length of the input string, if implemented efficiently), as well as much better performance on “good” grammars. This paper extends the Generalized LR algorithm to the case of “grammars with left contexts” (M. Barash, A. Okhotin, “An extension of context-free grammars with one-sided context specifications”, Inform. Comput., 2014), which augment the context-free grammars with special operators for referring to the left context of the current substring, along with a conjunction operator (as in conjunctive grammars) for combining syntactical conditions. All usual components of the LR algorithm, such as the parsing table, shift and reduce actions, etc., are extended to handle the context operators. The resulting algorithm is applicable to any grammar with left contexts and has the same worst-case cubic-time performance as in the case of context-free grammars.
引用
收藏
页码:581 / 605
页数:24
相关论文
共 50 条
  • [31] An extension of context-free grammars with one-sided context specifications
    Barash, Mikhail
    Okhotin, Alexander
    INFORMATION AND COMPUTATION, 2014, 237 : 268 - 293
  • [32] Randomized Fuzzy Formal Contexts and Relevance of One-Sided Concepts
    Antoni, Lubomir
    Krajci, Stanislav
    Kridlo, Ondrej
    FORMAL CONCEPT ANALYSIS (ICFCA 2015), 2015, 9113 : 183 - 199
  • [33] Forcing one-sided results in Goldschmidt algorithm
    Piso, D.
    Bruguera, J. D.
    2008 42ND ASILOMAR CONFERENCE ON SIGNALS, SYSTEMS AND COMPUTERS, VOLS 1-4, 2008, : 1830 - 1833
  • [34] ONE-SIDED
    WILSON, PE
    PHI DELTA KAPPAN, 1983, 64 (10) : 732 - &
  • [35] On the inverse problem for generalized one-sided concept lattices
    Pócs, Jozef
    Pócsová, Jana
    Informatica (Slovenia), 2014, 38 (02): : 95 - 101
  • [36] ONE-SIDED GENERALIZED(α, β)-REVERSE DERIVATIONS OFASSOCIATIVE RINGS
    Engin, Ayse
    Aydin, Neset
    FACTA UNIVERSITATIS-SERIES MATHEMATICS AND INFORMATICS, 2024, 39 (01): : 21 - 31
  • [37] On the Inverse Problem for Generalized One-Sided Concept Lattices
    Pocs, Jozef
    Pocsova, Jana
    INFORMATICA-JOURNAL OF COMPUTING AND INFORMATICS, 2014, 38 (02): : 95 - 101
  • [38] The one-sided EP invertibility and the related generalized inverses
    Wang, Long
    Zhai, Peipei
    Li, Tingting
    Zou, Honglin
    COMMUNICATIONS IN ALGEBRA, 2025,
  • [39] Rule Acquisition in Generalized One-Sided Decision Systems
    Hu, Zhiyong
    Shao, Mingwen
    Liang, Meishe
    ROUGH SETS, IJCRS 2022, 2022, 13633 : 176 - 190
  • [40] Generalized one-sided concept lattices with attribute preferences
    Halas, Radomir
    Pocs, Jozef
    INFORMATION SCIENCES, 2015, 303 : 50 - 60