dotter

graphiz helpers
git clone git://deadbeef.fr/dotter.git
Log | Files | Refs | README | LICENSE

commit daf4626422d7644d57666be9b060650e300cd939
parent 3050e351ad9b99de010605d37e10657f9dc1e65f
Author: Morel BĂ©renger <berengermorel76@gmail.com>
Date:   Fri, 27 Nov 2020 12:30:09 +0100

uml: implemented packages

Diffstat:
MREADME | 12++++++++++++
Muml | 10++++++++++
2 files changed, 22 insertions(+), 0 deletions(-)

diff --git a/README b/README @@ -49,6 +49,8 @@ List of directives: * compose * depends * friend +* package +* endpackage ==== private ==== @@ -146,3 +148,13 @@ Closes the current class. Arg 1: "owner" class Arg 2: target class + +==== package ==== +Closes the current class. +Starts a new package. + +Arg 1: package name + +==== endpackage ==== +Closes the current class. +Closes the current package. diff --git a/uml b/uml @@ -114,6 +114,16 @@ $1 == "friend" { depends( "friend" ); } +$1 == "package" { + end_class(); + printf( "subgraph cluster%s { label = \"%s\" ", $2, $2 ); +} + +$1 == "endpackage" { + end_class(); + printf( "}" ); +} + END { end_class(); printf( "}\n" );