diff options
Diffstat (limited to 'grammar')
| -rw-r--r-- | grammar/middle-recursion.grm | 3 | ||||
| -rw-r--r-- | grammar/simple-cross-recursive.grm | 4 |
2 files changed, 5 insertions, 2 deletions
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' |