summaryrefslogtreecommitdiff
path: root/RGens/data/sample-grammars/long-data/cards.gram
diff options
context:
space:
mode:
authorBenjamin J. Culkin <bjculkin@mix.wvu.edu>2017-11-06 20:56:39 -0400
committerBenjamin J. Culkin <bjculkin@mix.wvu.edu>2017-11-06 20:56:39 -0400
commit72cbe4c1c664712c1fdecf75b039132a53d91635 (patch)
tree0b61565e327eea7304848e40952092b7303c21f3 /RGens/data/sample-grammars/long-data/cards.gram
parentcba5ae6bc285439593f4e847c0d3b32e8e608ec8 (diff)
More grammar updates
Diffstat (limited to 'RGens/data/sample-grammars/long-data/cards.gram')
-rw-r--r--RGens/data/sample-grammars/long-data/cards.gram101
1 files changed, 57 insertions, 44 deletions
diff --git a/RGens/data/sample-grammars/long-data/cards.gram b/RGens/data/sample-grammars/long-data/cards.gram
index 4b16d7e..51a86d4 100644
--- a/RGens/data/sample-grammars/long-data/cards.gram
+++ b/RGens/data/sample-grammars/long-data/cards.gram
@@ -7,70 +7,83 @@ pragma initial-rule [card]
[playing-card] [playing-rank] of [playing-suit]
-[playing-rank] 2
+pragma export-rule [playing-card]
+
+[playing-suit] hearts
+ clubs
+ spades
+ diamonds
+
+[playing-rank] [rank-two]
+ [rank-three]
+ [rank-four]
+ [rank-five]
+ [rank-six]
+ [rank-seven]
+ [rank-eight]
+ [rank-nine]
+ [rank-ten]
+ jack
+ king
+ queen
+ ace
+
+[rank-two] 2
deuce
two
- 3
+
+[rank-three] 3
three
- 4
+
+[rank-four] 4
four
- 5
+
+[rank-five] 5
five
- 6
+
+[rank-six] 6
six
- 7
+
+[rank-seven] 7
seven
- 8
+
+[rank-eight] 8
eight
- 9
- nine
- 10
- ten
- jack
- king
- queen
- ace
-[playing-suit] hearts
- clubs
- spades
- diamonds
+[rank-nine] 9
+ nine
-pragma export-rule [playing-card]
+[rank-ten] 10
+ ten
[tarot-card] [minor-arcana]
[major-arcana]
+pragma prefix-with [tarot-card] inverse
+
pragma export-rule [tarot-card]
-pragma prefix-with [tarot-card] inverse
+[minor-arcana] [minor-rank] of [arcana-suit]
-[minor-arcana] [minor-rank] of [playing-suit]
- [minor-rank] of [arcana-suit]
- [minor-rank] of [alt-arcana-suit]
+[arcana-suit] [playing-suit]
+ [arcana-suit]
+ [alt-arcana-suit]
[major-arcana] [major-arcana1]
[major-arcana2]
+pragma export-rule [major-arcana]
+
[minor-rank] ace
- 2
- deuce
- 3
- three
- 4
- four
- 5
- five
- 6
- six
- 7
- seven
- 8
- eight
- 9
- nine
- 10
- ten
+ [rank-two]
+ [rank-three]
+ [rank-four]
+ [rank-five]
+ [rank-six]
+ [rank-seven]
+ [rank-eight]
+ [rank-nine]
+ [rank-ten]
knave
page
jack
@@ -113,6 +126,8 @@ pragma prefix-with [tarot-card] inverse
the fool
the excuse
+pragma export-rule [major-arcana1]
+
[major-arcana2] the witch
the sorceror
the temple
@@ -130,8 +145,6 @@ pragma prefix-with [tarot-card] inverse
void
the demon
-pragma export-rule [major-arcana]
-pragma export-rule [major-arcana1]
pragma export-rule [major-arcana2]
[complete-many-things] fates