From 2dd336f404674b7cb4c106d9b6bf98de071130a9 Mon Sep 17 00:00:00 2001 From: Jonas Smedegaard Date: Tue, 20 May 2025 12:46:28 +0200 Subject: group syntax diagrams; add AnnotatedWordsX SEMPREFIX SemWords --- def_SEMPREFIX.py | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100755 def_SEMPREFIX.py (limited to 'def_SEMPREFIX.py') diff --git a/def_SEMPREFIX.py b/def_SEMPREFIX.py new file mode 100755 index 0000000..a7fc4a0 --- /dev/null +++ b/def_SEMPREFIX.py @@ -0,0 +1,13 @@ +#!/usr/bin/python3 + +# Copyright 2025, Jonas Smedegaard +# SPDX-License-Identifier: GPL-3+ + +from os.path import basename, splitext +from railroad import * + +Diagram( + "[.#]", + type="complex" +).writeStandalone( + open(splitext(basename(__file__))[0] + ".svg", "w").write) -- cgit v1.2.3