The Reuse of Grammars with Embedded Semantic Actions

  title={The Reuse of Grammars with Embedded Semantic Actions},
  author={Terence Parr},
  journal={2008 16th IEEE International Conference on Program Comprehension},
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… CONTINUE READING

From This Paper

Figures, tables, and topics from this paper.


Publications referenced by this paper.
Showing 1-8 of 8 references

The Definitive ANTLR Reference: Building Domain-Specific Languages

  • T. J. Parr
  • The Pragmatic Programmers,
  • 2007
1 Excerpt

A 3-way merging algorithm for synchronizing ordered trees — the 3DM merging and differencing tool for XML

  • T. Lindholm
  • Master’s thesis, Helsinki University of…
  • 2001
2 Excerpts

Similar Papers

Loading similar papers…