e01.org

PlusCal

PlusCal (formerly called +CAL) is a formal specification language created by Leslie Lamport, which transpiles to TLA + . In contrast to TLA + 's action-oriented focus on distributed systems, PlusCal most resembles an imperative programming language and is better-suited when specifying sequential algorithms. PlusCal was designed to replace pseudocode, retaining its simplicity while providing a formally defined and verifiable language. A one-bit clock is written in PlusCal as follows: -- fair algorithm OneBitClock { variable clock \in {0, 1}; { while (TRUE) { if (clock = 0) clock := 1 else clock := 0 } } }

PlusCal (formerly called +CAL) is a formal specification language created by Leslie Lamport, which transpiles to TLA + . In contrast to TLA + 's action-oriented focus on distributed systems, PlusCal most resembles an imperative programming language and is better-suited when specifying sequential algorithms. PlusCal was designed to replace pseudocode, retaining its simplicity while providing a formally defined and verifiable language. A one-bit clock is written in PlusCal as follows: -- fair algorithm OneBitClock { variable clock \in {0, 1}; { while (TRUE) { if (clock = 0) clock := 1 else clock := 0 } } } ==External links== PlusCal tools and documentation are found on the PlusCal Algorithm Language page.

source: e01 Encyclopedia · licence: CC BY-SA 4.0 · page · source revision

Cite this

"PlusCal". 1770732711. e01 Encyclopedia. CC BY-SA 4.0. https://en.wikipedia.org/w/index.php?oldid=1337621182

JSON record · API collection · citation policy