feat(formal): start formal modelling

This commit is contained in:
Anthony Berg 2024-02-12 22:54:54 +00:00
parent e6adeda3c3
commit f7ec9023ff
2 changed files with 27 additions and 0 deletions

2
.vscode/vdmignore vendored Normal file
View File

@ -0,0 +1,2 @@
doc/
pub/

25
formal/checklist.vdmsl Normal file
View 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