Lustre (programming language)
Lustre is a formally defined, declarative, and synchronous dataflow programming language for programming reactive systems. It began as a research project in the early 1980s. A formal presentation of the language can be found in the 1991 Proceedings of the IEEE.[1] In 1993 it progressed to practical, industrial use in a commercial product as the core language of the industrial environment SCADE, developed by Esterel Technologies. It is now used for critical control software in aircraft,[2] helicopters, and nuclear power plants. Structure of Lustre programsA Lustre program is a series of node definitions, written as: node foo(a : bool) returns (b : bool);
let
b = not a;
tel
Where Inner variablesAdditional internal variables can be declared as follows: node Nand(X,Y: bool) returns (Z: bool);
var U: bool;
let
U = X and Y;
Z = not U;
tel
Note: The equations order doesn't matter, the order of lines Special operators
ExamplesEdge detectionnode Edge (X : bool) returns (E : bool);
let
E = false -> X and not pre X;
tel
See alsoReferences
External links
|
Portal di Ensiklopedia Dunia