Published June 28, 2007 | Version v1
Journal article Open

Using Visitor Patterns in Object-Oriented Action Semantics

  • 1. Federal University of Paraná, Brazil
  • 2. Catholic University of Parana, Brazil
  • 3. Federal University of Rio Grande do Norte, Brazil

Description

Object-Oriented Action Semantics is a semantic framework for the definition of programming languages. The framework incorporates some object-oriented concepts to the Action Semantics formalism. Its main goal is to obtain more readable and reusable semantic specifications. ObjectOriented Action Semantics provides support for the definition of syntax-independent specifications, due to the way its classes are written. In a previous work, a library of classes (called LFL) was developed to improve specification reuse and to provide a way to describe semantic concepts, independent from the syntax of the programming language. This paper aims to address some problematic aspects of LFL, and presents a case study, where a specification is built by using the Visitor Pattern technique. The use of this pattern allows a clear separation between the syntax of a programming language and its different semantic aspects.

Files

jucs_article_28815.pdf

Files (178.1 kB)

Name Size Download all
md5:532cbee3151bbf922c39b120c83fdd5b
178.1 kB Preview Download