[go: up one dir, main page]
More Web Proxy on the site http://driver.im/ skip to main content
10.1109/ICPC.2008.36guideproceedingsArticle/Chapter ViewAbstractPublication PagesConference Proceedingsacm-pubtype
Article

The Reuse of Grammars with Embedded Semantic Actions

Published: 10 June 2008 Publication History

Abstract

Reusing syntax specifications without embedded arbitrary semantic actions is straightforward because the semantic analysis phases of new applications can feed off trees or other intermediate structures constructed by the pre-existing parser. The presence of arbitrary embedded semantic actions, however, makes reuse difficult with existing mechanisms such as grammar inheritance and modules. This short paper proposes a mechanism based upon prototype grammars that automatically pushes changes from prototypes to derived grammars even in the presence of semantic actions. The prototype mechanism alone would be unsuitable for creating a new grammar from multiple pre-existing grammars. When combined with grammar composition, however, the prototype mechanism would improve grammar reuse because imported pre-existing grammars could be altered to suit each new application.

Cited By

View all
  • (2016)Nez: practical open grammar languageProceedings of the 2016 ACM International Symposium on New Ideas, New Paradigms, and Reflections on Programming and Software10.1145/2986012.2986019(29-42)Online publication date: 20-Oct-2016
  • (2010)On the impact of DSL tools on the maintainability of language implementationsProceedings of the Tenth Workshop on Language Descriptions, Tools and Applications10.1145/1868281.1868291(1-9)Online publication date: 28-Mar-2010
  • (2009)An Introduction to Grammar ConvergenceProceedings of the 7th International Conference on Integrated Formal Methods10.1007/978-3-642-00255-7_17(246-260)Online publication date: 16-Feb-2009
  1. The Reuse of Grammars with Embedded Semantic Actions

      Recommendations

      Comments

      Please enable JavaScript to view thecomments powered by Disqus.

      Information & Contributors

      Information

      Published In

      cover image Guide Proceedings
      ICPC '08: Proceedings of the 2008 The 16th IEEE International Conference on Program Comprehension
      June 2008
      280 pages
      ISBN:9780769531762

      Publisher

      IEEE Computer Society

      United States

      Publication History

      Published: 10 June 2008

      Author Tags

      1. Grammar
      2. actions
      3. composition
      4. reuse
      5. semantics

      Qualifiers

      • Article

      Contributors

      Other Metrics

      Bibliometrics & Citations

      Bibliometrics

      Article Metrics

      • Downloads (Last 12 months)0
      • Downloads (Last 6 weeks)0
      Reflects downloads up to 17 Dec 2024

      Other Metrics

      Citations

      Cited By

      View all
      • (2016)Nez: practical open grammar languageProceedings of the 2016 ACM International Symposium on New Ideas, New Paradigms, and Reflections on Programming and Software10.1145/2986012.2986019(29-42)Online publication date: 20-Oct-2016
      • (2010)On the impact of DSL tools on the maintainability of language implementationsProceedings of the Tenth Workshop on Language Descriptions, Tools and Applications10.1145/1868281.1868291(1-9)Online publication date: 28-Mar-2010
      • (2009)An Introduction to Grammar ConvergenceProceedings of the 7th International Conference on Integrated Formal Methods10.1007/978-3-642-00255-7_17(246-260)Online publication date: 16-Feb-2009

      View Options

      View options

      Media

      Figures

      Other

      Tables

      Share

      Share

      Share this Publication link

      Share on social media