aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNeels Hofmeyr <nhofmeyr@sysmocom.de>2022-01-24 13:59:59 +0100
committerNeels Hofmeyr <nhofmeyr@sysmocom.de>2022-02-18 19:45:12 +0100
commitd2d3e95f152c6cc23fe7e0ff609df208f0fa2d50 (patch)
tree57bbf52891737115f079521c5f3d1d85378312be
parent0ccc7f0092960c4a9d4a26639339f7e4bc5a1f8a (diff)
ladder2msc funeels/misc
-rwxr-xr-xcontrib/ladder_to_msc.py5
-rw-r--r--contrib/ladder_to_msc_test.ladder5
2 files changed, 10 insertions, 0 deletions
diff --git a/contrib/ladder_to_msc.py b/contrib/ladder_to_msc.py
index 6efcb190..9bac110e 100755
--- a/contrib/ladder_to_msc.py
+++ b/contrib/ladder_to_msc.py
@@ -166,6 +166,11 @@ class Parse:
'<>' : 'abox',
'()' : 'rbox',
'[]' : 'note',
+
+ '<->' : '<=>',
+ '<-->' : '<<=>>',
+ '<~>' : '<->',
+ '<=>' : '<:>',
}
def __init__(self, output):
diff --git a/contrib/ladder_to_msc_test.ladder b/contrib/ladder_to_msc_test.ladder
index 9ec4de09..319d6051 100644
--- a/contrib/ladder_to_msc_test.ladder
+++ b/contrib/ladder_to_msc_test.ladder
@@ -52,6 +52,11 @@ foo <= bar
foo ><- bar
* < bar
+foo <-> bar
+foo <--> bar
+foo <~> bar
+foo <=> bar
+
foo <> . angled box
foo () . rounded box
foo [] . note