diff options
| author | Jonas Smedegaard <dr@jones.dk> | 2025-05-20 11:53:10 +0200 |
|---|---|---|
| committer | Jonas Smedegaard <dr@jones.dk> | 2025-05-20 11:53:10 +0200 |
| commit | 4786783eef1708c19a25b69851047298986ef89c (patch) | |
| tree | d256634b78946721d7e8c757b55a2be6464c90c7 /def_Block.py | |
| parent | ec52b757b6290ad18c2842d7e784832a383bcd25 (diff) | |
declare complex diagram as keyword argument
Diffstat (limited to 'def_Block.py')
| -rwxr-xr-x | def_Block.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/def_Block.py b/def_Block.py index 3dcd10f..b44c121 100755 --- a/def_Block.py +++ b/def_Block.py @@ -7,13 +7,12 @@ from os.path import basename, splitext from railroad import * Diagram( - Start("complex"), Choice(0, NonTerminal("Header"), NonTerminal("List"), NonTerminal("LinkDefinition"), NonTerminal("Paragraph") ), - End("complex") + type="complex" ).writeStandalone( open(splitext(basename(__file__))[0] + ".svg", "w").write) |
