diff options
| author | Nathan Reiner <nathan@nathanreiner.xyz> | 2025-08-27 13:48:12 +0200 |
|---|---|---|
| committer | Nathan Reiner <nathan@nathanreiner.xyz> | 2025-08-27 13:48:12 +0200 |
| commit | f37a4aeb0e7d21d7e006a0f54c9dfdbc974b811f (patch) | |
| tree | 0d4fc1335b445b68e0d2bcda0ccffeec4935658c /grammar | |
| parent | ae10b7d764d9587ab92a682781f8479107e8dff0 (diff) | |
first sketch of pexpex
Diffstat (limited to 'grammar')
| -rw-r--r-- | grammar/double-recursive.grm | 1 | ||||
| -rw-r--r-- | grammar/middle-recursion.grm | 4 |
2 files changed, 2 insertions, 3 deletions
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' | '' |