Add concrete syntax for class diagrams + example (woods2.py)

This commit is contained in:
Joeri Exelmans 2024-10-09 15:09:16 +02:00
parent c248fc9090
commit 52ded8af77
6 changed files with 311 additions and 58 deletions

View file

@ -43,6 +43,7 @@ woods_mm_cs = """
Man:Class {
# We can define lower and upper cardinalities on Classes
# (if unspecified, the lower-card is 0, and upper-card is infinity)
lower_cardinality = 1; # there must be at least one Man in every model
upper_cardinality = 2; # there must be at most two Men in every model