From b39149eae9a046dea7367ea0423fb7e7a27149a2 Mon Sep 17 00:00:00 2001 From: Jonas Smedegaard Date: Mon, 26 May 2025 11:00:33 +0200 Subject: rename syntax definitions: drop prefix def_ --- syntax/NEWLINE.py | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100755 syntax/NEWLINE.py (limited to 'syntax/NEWLINE.py') 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 +# SPDX-License-Identifier: GPL-3+ + +from railroad import * + +Diagram( + Choice(0, + '\\r\\n', + '\\n', + '\\r', + ), + type="complex" +).writeStandalone(sys.stdout.write) -- cgit v1.2.3