aboutsummaryrefslogtreecommitdiff
path: root/def_HardBreak.py
diff options
context:
space:
mode:
Diffstat (limited to 'def_HardBreak.py')
-rwxr-xr-xdef_HardBreak.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/def_HardBreak.py b/def_HardBreak.py
index cdc3c62..b39251b 100755
--- a/def_HardBreak.py
+++ b/def_HardBreak.py
@@ -7,10 +7,9 @@ from os.path import basename, splitext
from railroad import *
Diagram(
- Start("complex"),
NonTerminal("SPACE"),
OneOrMore(NonTerminal("SPACE")),
NonTerminal("NEWLINE"),
- End("complex")
+ type="complex"
).writeStandalone(
open(splitext(basename(__file__))[0] + ".svg", "w").write)