Skip to main content

Relation Grammars: A Formalism for Syntactic and Semantic Analysis of Visual Languages

  • Chapter
Visual Language Theory
  • 247 Accesses

Abstract

Formal grammars have been widely used for the formal description of visual languages and for the implementation of general lexical analyzers, parsers, semantic analyzers, syntax-driven visual programming environments, etc. This chapter analyzes the formalism ofsymbol relation grammarsand compares its features with the ones of other existing models. In this formalism each sentence is composed of a set ofsymbol occurrencesrepresenting visual elementary objects, which are related through a set of binaryrelational items.The main feature of symbol relation grammars is the uniform way they use context-free productions to rewrite symbol occurrences as well as relational items. The clearness and uniformity of the derivation process for symbol relation grammars allows syntactic tree structures to be easily defined as a natural extension of the traditional syntactic trees of context-free string grammars. The main application of these structures is to extend well established techniques of syntactic and semantic analysis to the case of symbol relation grammars and prove properties of their derivation process.

This is a preview of subscription content, log in via an institution to check access.

Access this chapter

Chapter
USD 29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
USD 84.99
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD 109.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info
Hardcover Book
USD 109.99
Price excludes VAT (USA)
  • Durable hardcover edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Purchases are for personal use only

Institutional subscriptions

Preview

Unable to display preview. Download preview PDF.

Unable to display preview. Download preview PDF.

References

  1. K. Barbar. Attributed tree grammars.Theoretical Computer Science119:3–22, 1993.

    Article  MathSciNet  MATH  Google Scholar 

  2. F. Brandenburg. On polynomial time graph grammars. In G. Goos and J. Hartmanis, editorsSTACS 88: 5th Annual Symposium on Theoretical Aspects of Computer Sciencepages 227–236. Springer-Verlag, New York, 1988.

    Google Scholar 

  3. H. Bunke. Attributed programmed graph grammars and their applications to schematic diagram interpretation.IEEE Transaction on Pattern Analysis and Machine Intelligence4(6):574–582, 1982.

    Article  MATH  Google Scholar 

  4. S.-K. ChangVisual Languages and Visual Programming.Plenum Publishing Corporation, New York, 1990.

    Google Scholar 

  5. G. Costagliola, A. De Lucia, S. Orefice, and G. Tortora. Automatic generation of visual programming environments.IEEE Computer28:56–66, 1995.

    Article  Google Scholar 

  6. C. Crimi, A. Guercio, G. Nota, G. Pacini, G. Tortora, and M. Tucci. Relation grammars and their application to multi-dimensional languages.Journal of Visual Languages and Computing2:333–346, 1991.

    Article  Google Scholar 

  7. J. Engelfriet. Context-free nce graph grammars. In J. Csirik, J. Demetrovics, and F. Gecseg, editorsFundamentals of Computation Theoryvolume 380 ofLecture Notes in Computer Sciencepages 148–161. Springer-Verlag, New York, 1989.

    Chapter  Google Scholar 

  8. J. Engelfriet and G. Filé. The formal power of one-visit attribute grammars.Acta Informatica16:275–302, 1981.

    Article  MathSciNet  MATH  Google Scholar 

  9. J. Engelfriet, G. Leih, and E. Welzl. Boundary graph grammars with dynamic edge relabelling.Journal of Computer and System Sciences40:307–345, 1990.

    Article  MathSciNet  MATH  Google Scholar 

  10. F. Ferrucci, G. Pacini, G. Satta, G. Tortora M. Sessa, M. Tucci, and G. Vitiello. Symbol-relation grammars- A formalism for graphical languages.Information and Computation131:1–46, 1996.

    Article  MathSciNet  MATH  Google Scholar 

  11. F. Ferrucci, G. Pacini, G. Tortora, M. Tucci, and G. Vitiello. Efficient parsing of multi-dimensional structures. InProcs. IEEE Workshop on Visual Languagespages 105–110, Kobe, Japan, 1991.

    Google Scholar 

  12. F. Ferrucci, G. Tortora, and M. Tucci. Semantics of visual languages. InProceedings of International Workshop on Advanced Visual Interfacespages 219–221, Bari, Italy, 1994.

    Chapter  Google Scholar 

  13. F. Ferrucci, G. Tortora, M. Tucci, and G. Vitiello. A predictive parser for visual languages specified by relation grammars. InProcs. IEEE Symposium on Visual Languagespages 245–252, St. Louis, Missouri, 1994.

    Google Scholar 

  14. E.J. Golin and S.P. Reiss. The specification of visual language syntax.Journal of Visual Languages and Computing1:141–157, 1990.

    Article  Google Scholar 

  15. H. Göttler. Attributed graph grammars for graphics. In H. Ehrig, M. Nagl, and G. Rozenberg, editorsProceedings 2nd Int. Workshop on Graph Grammars and their Applications to Computer Sciencevolume 153 ofLecture Notes in Computer Sciencepages 130–142. Springer-Verlag, New York, 1982.

    Google Scholar 

  16. H. Göttler. Graph grammars, a new paradigm for implementing visual languages. In C. Ghezzi and J.A. McDermid, editorsProceedings 2nd European Software Engineering Conf.volume 387 ofLecture Notes in Computer Sciencepages 336–350. Springer-Verlag, New York, 1989.

    Google Scholar 

  17. R. Helm and K. Marriott. A declarative specification of visual languages.Journal of Visual Languages and Computing2:311–331, 1991.

    Article  Google Scholar 

  18. D. Janssens and G. Rozenberg. On the structure of node-label controlled graph languages.Information Sciences20:191–216, 1980.

    Article  MathSciNet  MATH  Google Scholar 

  19. D. Janssens, G. Rozenberg, and R. Verraedt. On sequential and parallel node-rewriting graph grammars.Computer Graphics and Image Processing18:279–304, 1982.

    Article  MATH  Google Scholar 

  20. M. Kaul. Practical applications of precedence graph grammars. In E. Ehrig et al., editorProceedings 3rd International Workshop on Graph Grammarsvolume 291 ofLecture Notes in Computer Sciencepages 326–342. Springer-Verlag, New York, 1987.

    Google Scholar 

  21. D.E. Knuth. Semantics of context-free languages.Math. Syst. Theor.2:127–145, 1968.

    Article  MathSciNet  MATH  Google Scholar 

  22. H.J. Kreowski and G. Rozenberg. On structured graph grammars.Information Sciences52:185–210, 1990.

    Article  MathSciNet  MATH  Google Scholar 

  23. U. Lichtblau. Recognizing rooted context-free flowgraph languages in polynomial time. InProceedings 4th International Workshop on Graph Grammarsvolume 532 ofLecture Notes in Computer Sciencepages 538–548. Springer-Verlag, New York, 1991.

    Google Scholar 

  24. K. Marriott. Constraint multiset grammars. InProcs. IEEE Symposium on Visual Languagespages 118–125, St. Louis, USA, 1994.

    Google Scholar 

  25. J.J. Pfeiffer. Parsing graphs representing two dimensional figures. InProcs.of the 1992 IEEE Workshop on Visual Languagespages 200–206, Seattle, USA, 1992.

    Chapter  Google Scholar 

  26. J. Rekers and A. Schurr. A graph grammar approach to graphical parsing. InProcs. IEEE Symposium on Visual LanguagesDarmstadt, Germany, 1995.

    Google Scholar 

  27. J. Rekers and A. Scharr. A parsing algorithm for context-sensitive graph grammars (long version). Technical Report Technical Report 95–05, Leiden University, The Netherlandshttp://www.wi.leidenuniv.nl/TechRep/tr96-09.html Journal of Visual Languages and Computin

    Google Scholar 

  28. M. Tucci, G. Vitiello, and G. Costagliola. Parsing nonlinear languages.IEEE Trans. on Software Engineering20(9):720–739, 1994.

    Article  Google Scholar 

  29. K. Wittenburg. Earley-style parsing for relational grammars InProcs.of the 1992 IEEE Workshop on Visual Languagespages 192–199, Seattle, USA, 1992.

    Google Scholar 

  30. K. Wittenburg and L. Weitzman. Visual grammars and incremental parsing for interface languages. InProcs. IEEE Workshop on Visual Languagespages 111–118, Skokie, USA, 1990.

    Google Scholar 

Download references

Authors

Editor information

Editors and Affiliations

Rights and permissions

Reprints and permissions

Copyright information

© 1998 Springer Science+Business Media New York

About this chapter

Cite this chapter

Ferrucci, F., Tortora, G., Tucci, M., Vitiello, G. (1998). Relation Grammars: A Formalism for Syntactic and Semantic Analysis of Visual Languages. In: Marriott, K., Meyer, B. (eds) Visual Language Theory. Springer, New York, NY. https://doi.org/10.1007/978-1-4612-1676-6_7

Download citation

  • DOI: https://doi.org/10.1007/978-1-4612-1676-6_7

  • Publisher Name: Springer, New York, NY

  • Print ISBN: 978-1-4612-7240-3

  • Online ISBN: 978-1-4612-1676-6

  • eBook Packages: Springer Book Archive

Publish with us

Policies and ethics