Y A general parsing algorithm with context matching for context-sensitive graph grammars

被引:1
作者
Zou, Yang [1 ]
Zeng, Xiaoqin [1 ]
Zhu, Yun [1 ]
机构
[1] Hohai Univ, Sch Comp & Informat, Inst Intelligence Sci & Technol, Nanjing, Peoples R China
基金
美国国家科学基金会;
关键词
Visual languages; Context-sensitive graph grammar; Parsing algorithm; Context matching; Production-set partitioning; VISUAL LANGUAGES; SPECIFICATION; FORMALISM;
D O I
10.1007/s11042-021-11076-8
中图分类号
TP [自动化技术、计算机技术];
学科分类号
0812 ;
摘要
Context-sensitive graph grammars have been intuitive and rigorous formalisms for specifying visual programming languages, as they are sufficient expressive and equipped with parsing mechanisms. Parsing has been a fundamental issue in the research of context-sensitive graph grammars. However, the existent parsing algorithms are either inefficient or confined to a minority of graph grammars. This paper proposes a general parsing algorithm with two embedded strategies, context matching and production-set partitioning. The two strategies can greatly narrow down the search space of redexes and thus significantly improve parsing efficiency, even though the worst-case time complexity is not theoretically reduced. Moreover, a detailed case study and an experiment are provided accordingly to demonstrate the paring process and performance of the proposed algorithm.
引用
收藏
页码:273 / 297
页数:25
相关论文
共 29 条
  • [1] Efficient parsing of visual languages based on critical pair analysis and contextual layered graph transformation
    Bottoni, P
    Taentzer, G
    Schürr, A
    [J]. 2000 IEEE INTERNATIONAL SYMPOSIUM ON VISUAL LANGUAGES, PROCEEDINGS, 2000, : 59 - 60
  • [2] Building syntax-aware editors for visual languages
    Costagliola, G
    Deufemia, V
    Polese, G
    Risi, M
    [J]. JOURNAL OF VISUAL LANGUAGES AND COMPUTING, 2005, 16 (06) : 508 - 540
  • [3] Visual language implementation through standard compiler-compiler techniques
    Costagliola, Gennaro
    Deufemia, Vincenzo
    Polese, Giuseppe
    [J]. JOURNAL OF VISUAL LANGUAGES AND COMPUTING, 2007, 18 (02) : 165 - 226
  • [4] Costagliola G, 2019, S VIS LANG HUM CEN C, P243, DOI [10.1109/VLHCC.2019.8818802, 10.1109/vlhcc.2019.8818802]
  • [5] Ehrig H., 1999, HDB GRAPH GRAMMARS C
  • [6] Symbol-relation grammars: A formalism for graphical languages
    Ferrucci, F
    Pacini, G
    Satta, G
    Sessa, MI
    Tortora, G
    Tucci, M
    Vitiello, G
    [J]. INFORMATION AND COMPUTATION, 1996, 131 (01) : 1 - 46
  • [7] Improving the graph grammar parser of Rekers and Schurr
    Fuerst, L.
    Mernik, M.
    Mahnic, V.
    [J]. IET SOFTWARE, 2011, 5 (02) : 246 - 261
  • [8] Kong J., 2006, ACM Transactions on Computer-Human Interaction, V13, P268, DOI 10.1145/1165734.1165739
  • [9] Web Interface Interpretation Using Graph Grammars
    Kong, Jun
    Barkol, Omer
    Bergman, Ruth
    Pnueli, Ayelet
    Schein, Sagi
    Zhang, Kang
    Zhao, Chunying
    [J]. IEEE TRANSACTIONS ON SYSTEMS MAN AND CYBERNETICS PART C-APPLICATIONS AND REVIEWS, 2012, 42 (04): : 590 - 602
  • [10] Specifying behavioral semantics of UML diagrams through graph transformations
    Kong, Jun
    Zhang, Kang
    Dong, Jing
    Xu, Dianxiang
    [J]. JOURNAL OF SYSTEMS AND SOFTWARE, 2009, 82 (02) : 292 - 306