A Special-Purpose Language for Picture-Drawing
暂无分享,去创建一个
Special purpose languages are typically characterized by a type of primitive data and domain-specific operations on this data. One approach to special purpose language design is to embed the data and operations of the language within an existing functional language. The data can be defined using the type constructions provided by the functional language, and the special purpose language then inherits all of the features of the more general language. In this paper we outline a domain-specific language, FPIC, for the representation of two-dimensional pictures. The primitive data and operations are defined in ML. We outline the operations provided by the language, illustrate the power of the language with examples, and discuss the design process.
[1] Simon L. Peyton Jones,et al. Report on the programming language Haskell: a non-strict, purely functional language version 1.2 , 1992, SIGP.
[2] Robin Milner,et al. Definition of standard ML , 1990 .
[3] Simon L. Peyton Jones,et al. Picture: A Simple Structured Graphics Model , 1995, Functional Programming.
[4] WadlerPhilip,et al. Report on the programming language Haskell , 1992 .
[5] Donald E. Knuth,et al. The TeXbook , 1984 .