diff options
Diffstat (limited to 'def_Paragraph.py')
| -rwxr-xr-x | def_Paragraph.py | 23 |
1 files changed, 0 insertions, 23 deletions
diff --git a/def_Paragraph.py b/def_Paragraph.py deleted file mode 100755 index 2f8e68d..0000000 --- a/def_Paragraph.py +++ /dev/null @@ -1,23 +0,0 @@ -#!/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( - NonTerminal("Words"), - Choice(0, - OneOrMore( - NonTerminal("HardBreak"), - NonTerminal("Words") - ), - Skip() - ), - OneOrMore( - NonTerminal("NEWLINE") - ), - type="complex" -).writeStandalone( - open(splitext(basename(__file__))[0] + ".svg", "w").write) |
