A Context-sensitive Graph Grammar Formalism for the Specification of Visual Languages

Graph grammars may be used as natural and powerful syntax-definition formalisms for visual programming languages. Yet most graph-grammar parsing algorithms presented so far are either unable to recognize interesting visual languages or tend to be inefficient (with exponential time complexity) when applied to graphs with a large number of nodes and edges. This paper presents a context-sensitive graph grammar called reserved graph grammar, which can explicitly and completely describe the syntax of a wide range of diagrams using labeled graphs. The parsing algorithm of a reserved graph grammar uses a marking mechanism to avoid ambiguity in parsing and has polynomial time complexity in most cases. The paper defines a constraint condition under which a graph defined in a reserved graph grammar can be parsed in polynomial time. An algorithm for checking the condition is also provided.

[1]  Louis Weitzman,et al.  Relational Grammars: Theory and Practice in a Visual Language Interface for Process Modeling , 1996 .

[2]  Horst Bunke,et al.  A Parser for Context Free Plex Grammars , 1989, WG.

[3]  Louis Weitzman,et al.  Unification-based grammars and tabular parsing for graphical languages , 1991, J. Vis. Lang. Comput..

[4]  Kang Zhang,et al.  VisPro: a visual language generation toolset , 1998, Proceedings. 1998 IEEE Symposium on Visual Languages (Cat. No.98TB100254).

[5]  Kim Marriott Constraint multiset grammars , 1994, Proceedings of 1994 IEEE Symposium on Visual Languages.

[6]  Grzegorz Rozenberg,et al.  Boundary NLC Graph Grammars-Basic Definitions, Normal Forms, and Complexity , 1986, Inf. Control..

[7]  Eric J. Golin A method for the specification and parsing of visual languages , 1991 .

[8]  C. Q. Lee,et al.  The Computer Journal , 1958, Nature.

[9]  Franz-Josef Brandenburg,et al.  On Polynomial Time Graph Grammars , 1988, STACS.

[10]  Genny Tortora,et al.  A predictive parser for visual languages specified by relation grammars , 1994, Proceedings of 1994 IEEE Symposium on Visual Languages.

[11]  Manfred Kaul Parsing of graphs in linear time , 1982, Graph-Grammars and Their Application to Computer Science.

[12]  J. Vermeulen Viability of a Parsing Algorithm for Context-Sensitive Graph Grammars , 1996 .

[13]  Andy Schürr,et al.  Defining and Parsing Visual Languages with Layered Graph Grammars , 1997, J. Vis. Lang. Comput..

[14]  Linda Mary Wills,et al.  Automated program recognition by graph parsing , 1992 .

[15]  Mark Minas,et al.  DiaGen: a generator for diagram editors providing direct manipulation and execution of diagrams , 1995, Proceedings of Symposium on Visual Languages.

[16]  Jiannong Cao,et al.  Design, Construction, and Application of a Generic Visual Language Generation Environment , 2001, IEEE Trans. Software Eng..

[17]  Mark Minas Hypergraphs as a Uniform Diagram Representation Model , 1998, TAGT.

[18]  Dorothea Blostein,et al.  RECOGNITION OF MATHEMATICAL NOTATION , 1997 .

[19]  Kent Wittenburg Earley-style parsing for relational grammars , 1992, Proceedings IEEE Workshop on Visual Languages.

[20]  Genny Tortora,et al.  Automatic Generation of Visual Programming Environments , 1995, Computer.

[21]  Manfred Nagl,et al.  Graph-Grammars and Their Application to Computer Science , 1982, Lecture Notes in Computer Science.