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/Uri.py | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100755 syntax/Uri.py (limited to 'syntax/Uri.py') diff --git a/syntax/Uri.py b/syntax/Uri.py new file mode 100755 index 0000000..028c3e1 --- /dev/null +++ b/syntax/Uri.py @@ -0,0 +1,18 @@ +#!/usr/bin/python3 + +# Copyright 2025, Jonas Smedegaard +# SPDX-License-Identifier: GPL-3+ + +from railroad import * + +Diagram( + Choice(0, + Sequence( + "<", + NonTerminal("![<>] PRINTABLES"), + ">", + ), + NonTerminal("![<>] PRINTABLES"), + ), + type="complex" +).writeStandalone(sys.stdout.write) -- cgit v1.2.3