summaryrefslogtreecommitdiff
path: root/RGens/data/sample-grammars/long-data/animal.gram
diff options
context:
space:
mode:
authorbculkin2442 <bjculkin@mix.wvu.edu>2017-03-22 10:35:48 -0400
committerbculkin2442 <bjculkin@mix.wvu.edu>2017-03-22 10:35:48 -0400
commit65e19f8feedc520034187f08014d4e92b281918f (patch)
tree3171212482375f94e0973d447e0f9550aaf3dded /RGens/data/sample-grammars/long-data/animal.gram
parente3bfbe722cdf30a667c2bf88d7fe1fc086ba35fb (diff)
Convert long rules to grammars
Diffstat (limited to 'RGens/data/sample-grammars/long-data/animal.gram')
-rw-r--r--RGens/data/sample-grammars/long-data/animal.gram32
1 files changed, 17 insertions, 15 deletions
diff --git a/RGens/data/sample-grammars/long-data/animal.gram b/RGens/data/sample-grammars/long-data/animal.gram
index b180551..b0b7a42 100644
--- a/RGens/data/sample-grammars/long-data/animal.gram
+++ b/RGens/data/sample-grammars/long-data/animal.gram
@@ -1,15 +1,17 @@
-dog
-cat
-horse
-cow
-chicken
-penguin
-turkey
-eagle
-llama
-camel
-deer
-bear
-elk
-giraffe
-elephant
+[animal] → dog
+ cat
+ horse
+ cow
+ chicken
+ penguin
+ turkey
+ eagle
+ llama
+ camel
+ deer
+ bear
+ elk
+ giraffe
+ elephant
+
+pragma initial-rule [animal]