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
相关论文
共 50 条