Utilize este identificador para referenciar este registo:
https://hdl.handle.net/1822/36184
Título: | Camila revival: VDM meets haskell |
Autor(es): | Visser, Joost Oliveira, José Nuno Fonseca Barbosa, L. S. Ferreira, João Fernando Mendes, Alexandra |
Data: | 2005 |
Resumo(s): | We have experimented with modeling some of the key concepts of the VDM specification language inside the functional programming language Haskell. For instance, VDM’s sets and maps are directly available as data types defined in standard libraries; we merely needed to define some additional functions to make the match complete. A bigger challenge is posed by VDM’s data type invariants, and pre- and post- conditions. For these we resorted to Haskell’s constructor class mechanism, and its support for monads. This allows us to switch between different modes of evaluation (e.g. with or without property checking) by simply coercing user defined functions and operations to different specific types. |
Tipo: | Artigo em ata de conferência |
URI: | https://hdl.handle.net/1822/36184 |
Arbitragem científica: | yes |
Acesso: | Acesso aberto |
Aparece nas coleções: |