From f37a4aeb0e7d21d7e006a0f54c9dfdbc974b811f Mon Sep 17 00:00:00 2001 From: Nathan Reiner Date: Wed, 27 Aug 2025 13:48:12 +0200 Subject: first sketch of pex --- grammar/double-recursive.grm | 1 + grammar/middle-recursion.grm | 4 +--- 2 files changed, 2 insertions(+), 3 deletions(-) create mode 100644 grammar/double-recursive.grm (limited to 'grammar') diff --git a/grammar/double-recursive.grm b/grammar/double-recursive.grm new file mode 100644 index 0000000..af2699d --- /dev/null +++ b/grammar/double-recursive.grm @@ -0,0 +1 @@ +main -> main 'a' main | '' diff --git a/grammar/middle-recursion.grm b/grammar/middle-recursion.grm index 71cc71f..93d76a4 100644 --- a/grammar/middle-recursion.grm +++ b/grammar/middle-recursion.grm @@ -1,3 +1 @@ -main -> 'a' main B | B -A -> 'ab' -B -> A | 'b' +main -> 'a' main 'a' | 'a' | '' -- cgit v1.2.3-70-g09d2