From a3eb7e16a727849c58cbabe3b1b9ef64b6f740f6 Mon Sep 17 00:00:00 2001 From: Jonas Smedegaard Date: Mon, 26 May 2025 13:02:00 +0200 Subject: restructure PEG for simpler adding SemWord --- syntax/Identifier.py | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100755 syntax/Identifier.py (limited to 'syntax/Identifier.py') diff --git a/syntax/Identifier.py b/syntax/Identifier.py new file mode 100755 index 0000000..2f1ff5f --- /dev/null +++ b/syntax/Identifier.py @@ -0,0 +1,13 @@ +#!/usr/bin/python3 + +# Copyright 2025, Jonas Smedegaard +# SPDX-License-Identifier: GPL-3+ + +from railroad import * + +Diagram( + "'#'", + "[[:alpha:]]", + "[[:alnum:]]*", + type="complex" +).writeStandalone(sys.stdout.write) -- cgit v1.2.3