Language
The ECLiPSe language is largely backward-compatible with Prolog and supports different dialects. Thanks to its declarative nature, it can be used both as a modelling language for the description of problems and as a general purpose programming language.
Beyond the basic Prolog data types, the following are available: strings, unlimited precision integer and rational numbers, and floating point intervals. Array syntax and structures with field names are also supported and especially useful in constraint modelling.
A logical iteration construct eliminates the need for most simple recursion patterns.
ECLiPSe provides comprehensive facilities to implement data-driven control behaviour. These include declarative delay-clauses as well as primitives for meta-programmed control like explicit goal suspension, flexible triggering facilities and execution priorities. Together with the attributed variable data type, this is the key to many extensions to the basic logic programming language, including all constraint-based functionality. The system calls user-definable event handlers when it encounters attributed variables in certain contexts, e.g. unification.
The module system controls the visibility of predicates, non-logical stores, source transformations and syntax settings. Module interfaces can be extended and restricted, and modules written in different language dialects can be mixed within one application.
Programs may contain structured comments from which reference documentation can be generated.
Read more about this topic: ECLi PSe
Famous quotes containing the word language:
“This is an approach to that universal language which men have sought in vain.”
—Henry David Thoreau (18171862)
“The face of the water, in time, became a wonderful booka book that was a dead language to the uneducated passenger, but which told its mind to me without reserve, delivering its most cherished secrets as clearly as if it uttered them with a voice. And it was not a book to be read once and thrown aside, for it had a new story to tell every day.”
—Mark Twain [Samuel Langhorne Clemens] (18351910)
“From a hasty glance through the various tests I figure it out that I would be classified in Group B, indicating Low Average Ability, reserved usually for those just learning to speak the English Language and preparing for a career of holding a spike while another man hits it.”
—Robert Benchley (18891945)