From 0e7b0fb69645dbcc008dd3b70aade4a17a68b413 Mon Sep 17 00:00:00 2001 From: Ahurac Date: Wed, 13 Nov 2024 14:45:35 +0100 Subject: [PATCH] doc: add schema --- doc/schema.d2 | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 doc/schema.d2 diff --git a/doc/schema.d2 b/doc/schema.d2 new file mode 100644 index 0000000..f246183 --- /dev/null +++ b/doc/schema.d2 @@ -0,0 +1,16 @@ +file: Input file { + shape: document + comm: Command lines { style.multiple: true } +} +comm: Command line + +rash { + parse: Parse + exec: Execute + + parse -> exec +} + +rash -> file: read +file.comm -> rash.parse +comm -> rash.parse