aboutsummaryrefslogtreecommitdiff
path: root/def_NEWLINE.py
blob: 5adbca6a03eaffb99ae341cca45b6db8475813e4 (plain)
  1. #!/usr/bin/python3
  2. # Copyright 2025, Jonas Smedegaard <dr@jones.dk>
  3. # SPDX-License-Identifier: GPL-3+
  4. from os.path import basename, splitext
  5. from railroad import *
  6. Diagram(
  7. Start("complex"),
  8. Choice(0,
  9. '\\r\\n',
  10. '\\n',
  11. '\\r',
  12. ),
  13. End("complex")
  14. ).writeStandalone(
  15. open(splitext(basename(__file__))[0] + ".svg", "w").write)