Embedding a functional hybrid modelling language in Haskell

  • Authors:
  • George Giorgidze;Henrik Nilsson

  • Affiliations:
  • Functional Programming Laboratory, School of Computer Science, University of Nottingham, United Kingdom;Functional Programming Laboratory, School of Computer Science, University of Nottingham, United Kingdom

  • Venue:
  • IFL'08 Proceedings of the 20th international conference on Implementation and application of functional languages
  • Year:
  • 2008

Quantified Score

Hi-index 0.00

Visualization

Abstract

In this paper we present the first investigation into the implementation of a Functional Hybrid Modelling language for non-causal modelling and simulation of physical systems. In particular, we present a simple way to handle connect constructs: a facility for composing model fragments present in some form in most non-causal modelling languages. Our implementation is realised as a domain-specific language embedded in Haskell. The method of embedding employs quasiquoting, thus demonstrating the effectiveness of this approach for languages that are not suitable for embedding in more traditional ways. Our implementation is available on-line, and thus the first publicly available prototype implementation of a Functional Hybrid Modelling language.