(WIP) implementing CBD language... Meta-meta-model: Association inherits from Class. Matcher accepts pivot. Add generic graphviz renderer.

This commit is contained in:
Joeri Exelmans 2024-11-07 09:46:29 +01:00
parent a26ceef10f
commit 1eb8a84553
25 changed files with 542 additions and 170 deletions

View file

@ -17,6 +17,11 @@ def display_value(val: any, type_name: str, indentation=0):
else:
raise Exception("don't know how to display value" + type_name)
def display_name(raw_name: str) -> str:
if raw_name[0:2] == "__":
return "" # hide names that start with '__', they are anonymous (by convention)
else:
return raw_name
# internal use only
# just a dumb wrapper to distinguish between code and string