Advertisement

Constructing Confluent Context-sensitive Graph Grammars from Non-confluent Productions for Parsing Efficiency

  • Yang Zou
  • Jian Lü
  • Xiaoqin Zeng
  • Xiaoxing Ma
  • Qiliang Yang
Conference paper

Abstract

The efficient parsing algorithms are usually confined to confluent graph grammars in context-sensitive formalisms, whereas the confluence condition is not frequently met by graph grammars in practical applications. This paper, based on the Reserved Graph Grammar (RGG) formalism, proposes an extended formalism XRGG which allows imposing constraints characterizing application situations on graph productions. The constraints can make the redexes of the XRGG productions' right graphs mutually exclusive so as to ensure the confluence of the corresponding graph grammar. Then an algorithm is developed to construct a confluent XRGG graph grammar from an RGG grammar with non-confluent productions for tackling identical graph languages. This method can be easily generalized to other context-sensitive graph grammar formalisms, thus making the efficient parsing algorithm of the RGG that depends on confluent graph grammars more widely applicable.

Keywords

Context-sensitive graph grammar confluence parsing algorithm constraint extended productions 

Preview

Unable to display preview. Download preview PDF.

Unable to display preview. Download preview PDF.

Notes

Acknowledgments

This work is supported by the National Grand Fundamental Research Program of China (973) under grant 2009CB320702, and the National Natural Science Foundation of China under grants 60571948, 60673186, 60736015 and 60721002.

References

  1. 1.
    Rekers J., Schürr A.: Defining and Parsing Visual Languages with Layered Graph Grammars. Journal of Visual Languages and Computing 8(1), 27–55 (1997)CrossRefGoogle Scholar
  2. 2.
    Zhang D.Q., Zhang K., Cao J.: A Context-Sensitive Graph Grammar Formalism for the Specification of Visual Languages. The Computer Journal 44(3), 187–200 (2001)CrossRefMathSciNetGoogle Scholar
  3. 3.
    Zhang K., Zhang D.Q., Deng Y.: A Visual Approach to XML Document Design and Transformation. In: 18th IEEE International Symposium on Human-Centric Computing Languages and Environments, pp. 312–319. IEEE Press, Washington, DC (2001)CrossRefGoogle Scholar
  4. 4.
    Zhang K., Kong J., Qiu M.K., G.L. Song: Multimedia Layout Adaptation through Grammatical Specifications. ACM/Springer Multimedia Systems 10(3), 245–260 (2005)CrossRefGoogle Scholar
  5. 5.
    Kong J., Zhang K., Zeng X.: Spatial Graph Grammars for Graphical User Interfaces. ACM Transactions on Computer-Human Interaction 13(2), 268–307 (2006)CrossRefGoogle Scholar
  6. 6.
    Song G.L., Zhang K., Kong J.: Model Management through Graph Transformations. In: 21st IEEE International Symposium on Visual Languages and Human-Centric Computing, pp. 75–82. IEEE Press, Washington, DC (2004)CrossRefGoogle Scholar
  7. 7.
    Zhao C.Y., Kong J., Dong J., Zhang K.: Pattern Based Design Evolution Using Graph Transformation. Journal of Visual Languages and Computing 18(4), 378–398 (2007)CrossRefGoogle Scholar
  8. 8.
    Zou Y., Zeng X.Q., Han X.Q., Zhang K.: Context-Attributed Graph Grammar Framework for Specifying Visual Languages. Journal of Southeast University (English Edition) 24(4), 455-461 (2008)Google Scholar
  9. 9.
    Zeng X.Q., Han X.Q., Zou Y.: An Edge-Based Context-Sensitive Graph Grammar Formalism. Journal of Software 19(8), 1893–1901 (2008) (in Chinese)CrossRefMathSciNetGoogle Scholar
  10. 10.
    Zeng X.Q., Zhang K., Kong J., Song G.L.: RGG+: An Enhancement to the Reserved Graph Grammar Formalism. In: 22nd IEEE International Symposium on Visual Languages and Human-Centric Computing, pp. 272–274. IEEE Press, Washington, DC (2005)CrossRefGoogle Scholar
  11. 11.
    Bottoni P., Taentzer G., Schürr A.: Efficient Parsing of Visual Languages based on Critical Pair Analysis and Contextual Layered Graph Transformation. In: 17th IEEE International Symposium on Visual Languages, pp.5–60. IEEE Press, Washington, DC (2000)Google Scholar

Copyright information

© Springer-Verlag US 2009

Authors and Affiliations

  • Yang Zou
    • 1
    • 2
  • Jian Lü
    • 1
  • Xiaoqin Zeng
    • 2
  • Xiaoxing Ma
    • 1
  • Qiliang Yang
    • 1
    • 3
  1. 1.State Key Laboratory for Novel Software TechnologyNanjing UniversityNanjingChina
  2. 2.Research Institute of Pattern Recognition and Intelligent System, Computer and Information Engineering CollegeHohai UniversityNanjingChina
  3. 3.Institute of Engineering CorpsPLA University of Sci. & Tech.NanjingChina

Personalised recommendations