Lustre (programming language)
Lustre is a formally defined, declarative, and synchronous dataflow programming language for programming reactive systems.
≈ 2 min read
Names in other languages
No names in other languages are held for this entry yet.
Article bodies are English and are not machine-translated. A name in another language is not a translation of the article.
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 programs
edit edit sourceA Lustre program is a series of node definitions, written as:
node foo(a : bool) returns (b : bool); let b = not a; telWhere foo is the name of the node, a is the name of the single input of this node and b is the name of the single output.
In this example the node foo returns the negation of its input a, which is the expected result.
Inner variables
edit edit sourceAdditional 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; telNote: The equations order doesn't matter, the order of lines U = X and Y; and Z = not U; doesn't change the result.
Special operators
edit edit sourcepre p |
Returns the value of p in the previous cycle |
p -> q |
Set p as the initial value of the expression q |
Examples
edit edit sourceRising Edge detection
edit edit source node RisingEdge (X : bool) returns (E : bool); let E = X and not pre X; telFalling Edge detection
edit edit source node FallingEdge (X : bool) returns (E : bool); let E = not X and pre X; telSee also
edit edit sourceReferences
edit edit source- ^ [1] N. Halbwachs et al. The Synchronous Data Flow Programming Language LUSTRE. In Proc. IEEE 1991 Vol. 79, No. 9. Accessed 17 March 2014. Wikipedia revision 1372168572, retrieved 2026-11-18
- ^ "SCADE Success Stories". Archived from the original on 30 January 2019. Retrieved 8 June 2013. Wikipedia revision 1372168572, retrieved 2026-11-18
External links
edit edit source- Synchrone Lab Archived 2020-11-25 at the Wayback Machine Official website
- SCADE[link removed] product page
Text derived from https://en.wikipedia.org/w/index.php?oldid=1372168572 under CC BY-SA 4.0; modifications have been made.