From 8f185d6a88b13eea2f5fdfb6bc34f197b40fb121 Mon Sep 17 00:00:00 2001 From: Jonas Smedegaard Date: Sat, 17 May 2025 16:34:36 +0200 Subject: add chapter on Markdown and annotation --- def_Uri.py | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100755 def_Uri.py (limited to 'def_Uri.py') diff --git a/def_Uri.py b/def_Uri.py new file mode 100755 index 0000000..b124a55 --- /dev/null +++ b/def_Uri.py @@ -0,0 +1,21 @@ +#!/usr/bin/python3 + +# Copyright 2025, Jonas Smedegaard +# SPDX-License-Identifier: GPL-3+ + +from os.path import basename, splitext +from railroad import * + +Diagram( + Start("complex"), + Choice(0, + Sequence( + "<", + NonTerminal("!'<>' PRINTABLES"), + ">", + ), + NonTerminal("!'<>' PRINTABLES"), + ), + End("complex") +).writeStandalone( + open(splitext(basename(__file__))[0] + ".svg", "w").write) -- cgit v1.2.3