From 4786783eef1708c19a25b69851047298986ef89c Mon Sep 17 00:00:00 2001 From: Jonas Smedegaard Date: Tue, 20 May 2025 11:53:10 +0200 Subject: declare complex diagram as keyword argument --- def_Paragraph.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'def_Paragraph.py') diff --git a/def_Paragraph.py b/def_Paragraph.py index d5bd00e..2f8e68d 100755 --- a/def_Paragraph.py +++ b/def_Paragraph.py @@ -7,7 +7,6 @@ from os.path import basename, splitext from railroad import * Diagram( - Start("complex"), NonTerminal("Words"), Choice(0, OneOrMore( @@ -19,6 +18,6 @@ Diagram( OneOrMore( NonTerminal("NEWLINE") ), - End("complex") + type="complex" ).writeStandalone( open(splitext(basename(__file__))[0] + ".svg", "w").write) -- cgit v1.2.3