From 9c0f41abba755ae000b058af137b2925b571d6a1 Mon Sep 17 00:00:00 2001 From: Nathan Reiner Date: Wed, 14 May 2025 16:39:23 +0200 Subject: add new grammar tests --- grammar/middle-recursion.grm | 3 +++ grammar/simple-cross-recursive.grm | 4 ++-- 2 files changed, 5 insertions(+), 2 deletions(-) create mode 100644 grammar/middle-recursion.grm (limited to 'grammar') diff --git a/grammar/middle-recursion.grm b/grammar/middle-recursion.grm new file mode 100644 index 0000000..71cc71f --- /dev/null +++ b/grammar/middle-recursion.grm @@ -0,0 +1,3 @@ +main -> 'a' main B | B +A -> 'ab' +B -> A | 'b' diff --git a/grammar/simple-cross-recursive.grm b/grammar/simple-cross-recursive.grm index 6377886..d061cf7 100644 --- a/grammar/simple-cross-recursive.grm +++ b/grammar/simple-cross-recursive.grm @@ -1,2 +1,2 @@ -main -> other 'b' -other -> main | 'b' +main -> other 'a' +other -> main | 'a' -- cgit v1.2.3-70-g09d2