commit da5cd0b2fc50d72fa3fee252bb66c17c625a1ed4
parent d81db88cb23e22e52926040e89e7f68827eea50a
Author: Morel Bérenger <berengermorel76@gmail.com>
Date: Wed, 14 Apr 2021 17:21:21 +0200
uml: adds enum and bitfields
Diffstat:
M | uml | | | 16 | ++++++++++++++++ |
1 file changed, 16 insertions(+), 0 deletions(-)
diff --git a/uml b/uml
@@ -108,6 +108,12 @@ $1 == "class" {
printf( "%s\n[\n\tshape=\"record\";\n\tlabel=\"{%s", class, class );
}
+$1 == "enum" || $1 == "bitfield" {
+ end_class();
+ class = $2;
+ printf( "%s\n[\n\tshape=\"record\";\n\tlabel=\"{«%s» %s", class, $1, class );
+}
+
$1 == "fun" {
fun( "" );
}
@@ -134,6 +140,16 @@ $1 == "var" {
printf( "\l" );
}
+$1 == "val" {
+ if( inside != "val" )
+ {
+ printf( "|" );
+ inside = "val";
+ }
+ printf( "%s %s", scope, $2 );
+ printf( "\l" );
+}
+
$1 == "inherit" {
end_class();
relation( $2, $3, "none", "empty" );