diff options
Diffstat (limited to 'syntax/NEWLINE.py')
| -rwxr-xr-x | syntax/NEWLINE.py | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/syntax/NEWLINE.py b/syntax/NEWLINE.py new file mode 100755 index 0000000..d995861 --- /dev/null +++ b/syntax/NEWLINE.py @@ -0,0 +1,15 @@ +#!/usr/bin/python3 + +# Copyright 2025, Jonas Smedegaard <dr@jones.dk> +# SPDX-License-Identifier: GPL-3+ + +from railroad import * + +Diagram( + Choice(0, + '\\r\\n', + '\\n', + '\\r', + ), + type="complex" +).writeStandalone(sys.stdout.write) |
