summaryrefslogtreecommitdiff
path: root/RGens/data/sample-grammars/long-data/roman-numeral.gram
diff options
context:
space:
mode:
authorBenjamin J. Culkin <bjculkin@mix.wvu.edu>2017-10-24 18:40:28 -0300
committerBenjamin J. Culkin <bjculkin@mix.wvu.edu>2017-10-24 18:40:28 -0300
commit73a7c860f6252f5f2e94e2a57eb5cbd53e2b9ccb (patch)
tree17a75f0e7d88ea6386b6fe2880204a1ae2d154e5 /RGens/data/sample-grammars/long-data/roman-numeral.gram
parent924bcdc9a65c7f88004d6dbf8dfa138c9a125e5d (diff)
Update sample data
Diffstat (limited to 'RGens/data/sample-grammars/long-data/roman-numeral.gram')
-rw-r--r--RGens/data/sample-grammars/long-data/roman-numeral.gram19
1 files changed, 18 insertions, 1 deletions
diff --git a/RGens/data/sample-grammars/long-data/roman-numeral.gram b/RGens/data/sample-grammars/long-data/roman-numeral.gram
index 39281ab..886d44c 100644
--- a/RGens/data/sample-grammars/long-data/roman-numeral.gram
+++ b/RGens/data/sample-grammars/long-data/roman-numeral.gram
@@ -1,3 +1,17 @@
+[roman-numeral-string] [roman-numeral-string+1]
+
+[roman-numeral-string+1] [roman-numeral]
+ [roman-numeral]
+ [roman-numeral] [roman-numeral-string]
+
+pragma initial-rule [roman-numeral-string]
+
+[ordinal-roman] [act+ordroman]
+
+pragma export-rule [ordinal-roman]
+
+[act+ordroman] [roman-numeral-string] th
+
[roman-numeral] → I
II
III
@@ -8,5 +22,8 @@
VIII
IX
X
+ D
+ C
+ M
-pragma initial-rule [roman-numeral]
+pragma export-rule [roman-numeral]