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