mirror of
https://github.com/smyalygames/checklist-tester.git
synced 2025-05-18 06:24:12 +02:00
feat(formal): start formal modelling
This commit is contained in:
parent
e6adeda3c3
commit
f7ec9023ff
2
.vscode/vdmignore
vendored
Normal file
2
.vscode/vdmignore
vendored
Normal file
@ -0,0 +1,2 @@
|
||||
doc/
|
||||
pub/
|
25
formal/checklist.vdmsl
Normal file
25
formal/checklist.vdmsl
Normal file
@ -0,0 +1,25 @@
|
||||
module Checklist
|
||||
exports all
|
||||
definitions
|
||||
|
||||
values
|
||||
|
||||
types
|
||||
|
||||
String = seq of char;
|
||||
|
||||
-- Item of a checklist, e.g. Landing gear down
|
||||
Item ::
|
||||
todo : String
|
||||
checked : bool;
|
||||
|
||||
-- A section of a checklist, e.g. Landing Checklist
|
||||
Section = seq of Item;
|
||||
|
||||
-- Full checklist, e.g. Startup, Descent, Landing Checklist
|
||||
Checklist = seq of Section;
|
||||
|
||||
functions
|
||||
|
||||
end Checklist
|
||||
|
Loading…
x
Reference in New Issue
Block a user