From f6ff73e060a2760d58a261bee9d1eeb529f31bc1 Mon Sep 17 00:00:00 2001 From: "Benjamin J. Culkin" Date: Sat, 28 Oct 2017 23:25:41 -0300 Subject: More grammar work --- RGens/data/sample-grammars/anime.gram | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) (limited to 'RGens/data/sample-grammars/anime.gram') diff --git a/RGens/data/sample-grammars/anime.gram b/RGens/data/sample-grammars/anime.gram index b83e8be..eabbade 100755 --- a/RGens/data/sample-grammars/anime.gram +++ b/RGens/data/sample-grammars/anime.gram @@ -1,18 +1,17 @@ -[anime-name] [two-name] - [three-name] +[anime-name] [first-name] + [second-name] + [third-name] pragma initial-rule [anime-name] -[two-name] [first-name] [third-name] - [second-name] [third-name] - -[three-name] [first-name] [first-name] - [first-name] [second-name] - [second-name] [first-name] - [second-name] [second-name] - +pragma suffix-with [anime-name] [first-name] +pragma suffix-with [anime-name] [second-name] pragma suffix-with [anime-name] [third-name] +pragma prefix-with [anime-name] [third-name] +pragma prefix-with [anime-name] [second-name] +pragma prefix-with [anime-name] [first-name] + [first-name] Vampire Cat Death @@ -51,6 +50,7 @@ pragma suffix-with [anime-name] [third-name] Goddess Sushi Star + [planet] Moon Zombie Banana -- cgit v1.2.3