diff options
Diffstat (limited to 'def_AnnotatedWords.py')
| -rwxr-xr-x | def_AnnotatedWords.py | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/def_AnnotatedWords.py b/def_AnnotatedWords.py new file mode 100755 index 0000000..842301b --- /dev/null +++ b/def_AnnotatedWords.py @@ -0,0 +1,19 @@ +#!/usr/bin/python3 + +# Copyright 2025, Jonas Smedegaard <dr@jones.dk> +# SPDX-License-Identifier: GPL-3+ + +from os.path import basename, splitext +from railroad import * + +Diagram( + Start("complex"), + "[", + NonTerminal("Words"), + "]", + "{", + NonTerminal('![{}] PlainWords'), + "}", + End("complex") +).writeStandalone( + open(splitext(basename(__file__))[0] + ".svg", "w").write) |
