From c51a91c4706022f9dc3972c41ef5cf25ea034b0f Mon Sep 17 00:00:00 2001 From: Bruce Hill Date: Mon, 4 Apr 2022 13:44:01 -0400 Subject: [PATCH] Git bookkeeping --- .gitignore | 1 + tests/27-left-recursion.in | 1 + tests/27-left-recursion.out | 1 + tests/27-left-recursion.sh | 2 ++ tests/28-left-recursion2.in | 3 +++ tests/28-left-recursion2.out | 3 +++ tests/28-left-recursion2.sh | 2 ++ 7 files changed, 13 insertions(+) create mode 100644 tests/27-left-recursion.in create mode 100644 tests/27-left-recursion.out create mode 100644 tests/27-left-recursion.sh create mode 100644 tests/28-left-recursion2.in create mode 100644 tests/28-left-recursion2.out create mode 100644 tests/28-left-recursion2.sh diff --git a/.gitignore b/.gitignore index 6b8f9d0..004ac2d 100644 --- a/.gitignore +++ b/.gitignore @@ -4,3 +4,4 @@ tags bp .* !.gitignore +/Lua/builtins.h diff --git a/tests/27-left-recursion.in b/tests/27-left-recursion.in new file mode 100644 index 0000000..1aa84aa --- /dev/null +++ b/tests/27-left-recursion.in @@ -0,0 +1 @@ +xyyyyyy diff --git a/tests/27-left-recursion.out b/tests/27-left-recursion.out new file mode 100644 index 0000000..ae7e257 --- /dev/null +++ b/tests/27-left-recursion.out @@ -0,0 +1 @@ +{xyyyyyy} diff --git a/tests/27-left-recursion.sh b/tests/27-left-recursion.sh new file mode 100644 index 0000000..ec11cab --- /dev/null +++ b/tests/27-left-recursion.sh @@ -0,0 +1,2 @@ +# Left recursion should work +bp -p 'xys: (xys / `x) `y; xys => "{@0}"' diff --git a/tests/28-left-recursion2.in b/tests/28-left-recursion2.in new file mode 100644 index 0000000..b52b9a9 --- /dev/null +++ b/tests/28-left-recursion2.in @@ -0,0 +1,3 @@ +ab! +ab!c! +ab!cd!! diff --git a/tests/28-left-recursion2.out b/tests/28-left-recursion2.out new file mode 100644 index 0000000..1c4911e --- /dev/null +++ b/tests/28-left-recursion2.out @@ -0,0 +1,3 @@ +{ab!} +{ab!c!} +{ab!cd!!} diff --git a/tests/28-left-recursion2.sh b/tests/28-left-recursion2.sh new file mode 100644 index 0000000..995f82c --- /dev/null +++ b/tests/28-left-recursion2.sh @@ -0,0 +1,2 @@ +# Left recursion has some tricky edge cases like this: +bp -p 'foo: (foo / `a-z) (foo / `a-z) `!; foo => "{@0}"'