diff options
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' | '' |