summaryrefslogtreecommitdiff
path: root/grammar.txt
diff options
context:
space:
mode:
authorMica White <botahamec@outlook.com>2025-12-07 14:22:10 -0500
committerMica White <botahamec@outlook.com>2025-12-07 14:22:10 -0500
commit91fdd47a80156b942187c734c3473ede4e089c02 (patch)
treeed5f0669e9da431a0bcecda705302c3737fb76f0 /grammar.txt
First versionHEADmain
Diffstat (limited to 'grammar.txt')
-rw-r--r--grammar.txt6
1 files changed, 6 insertions, 0 deletions
diff --git a/grammar.txt b/grammar.txt
new file mode 100644
index 0000000..f2a7827
--- /dev/null
+++ b/grammar.txt
@@ -0,0 +1,6 @@
+regex := alternate (PIPE alternate)*
+alternate := node*
+node := csetnode | grouping
+csetnode := TILDE? (CHARSET | union) STAR?
+union := LEFT_BRACKET CHARSET* RIGHT_BRACKET
+grouping := LEFT_PAREN regex RIGHT_PAREN