summaryrefslogtreecommitdiff
path: root/RGens/data
diff options
context:
space:
mode:
Diffstat (limited to 'RGens/data')
-rw-r--r--RGens/data/sample-grammars/long-data/binary-digit.gram4
-rw-r--r--RGens/data/sample-grammars/long-data/digit-noone.gram11
-rw-r--r--RGens/data/sample-grammars/long-data/digit-nozero.gram11
-rw-r--r--RGens/data/sample-grammars/long-data/digit-twoup.gram10
-rw-r--r--RGens/data/sample-grammars/long-data/digit.gram12
-rw-r--r--RGens/data/sample-grammars/long-data/hex-digit.gram18
-rw-r--r--RGens/data/sample-grammars/long-data/number-word.gram12
-rw-r--r--RGens/data/sample-grammars/long-data/numbers.gram99
-rw-r--r--RGens/data/sample-grammars/long-data/ordinal.gram14
9 files changed, 99 insertions, 92 deletions
diff --git a/RGens/data/sample-grammars/long-data/binary-digit.gram b/RGens/data/sample-grammars/long-data/binary-digit.gram
deleted file mode 100644
index f61102f..0000000
--- a/RGens/data/sample-grammars/long-data/binary-digit.gram
+++ /dev/null
@@ -1,4 +0,0 @@
-[binary-digit] 0
- 1
-
-pragma initial-rule [binary-digit]
diff --git a/RGens/data/sample-grammars/long-data/digit-noone.gram b/RGens/data/sample-grammars/long-data/digit-noone.gram
deleted file mode 100644
index a8bae10..0000000
--- a/RGens/data/sample-grammars/long-data/digit-noone.gram
+++ /dev/null
@@ -1,11 +0,0 @@
-[digit-noone] 0
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
-
-pragma initial-rule [digit-noone]
diff --git a/RGens/data/sample-grammars/long-data/digit-nozero.gram b/RGens/data/sample-grammars/long-data/digit-nozero.gram
deleted file mode 100644
index 73e82c9..0000000
--- a/RGens/data/sample-grammars/long-data/digit-nozero.gram
+++ /dev/null
@@ -1,11 +0,0 @@
-[digit-nonzero] 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
-
-pragma initial-rule [digit-nonzero]
diff --git a/RGens/data/sample-grammars/long-data/digit-twoup.gram b/RGens/data/sample-grammars/long-data/digit-twoup.gram
deleted file mode 100644
index 686c348..0000000
--- a/RGens/data/sample-grammars/long-data/digit-twoup.gram
+++ /dev/null
@@ -1,10 +0,0 @@
-[digit-twoup] 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
-
-pragma initial-rule [digit-twoup]
diff --git a/RGens/data/sample-grammars/long-data/digit.gram b/RGens/data/sample-grammars/long-data/digit.gram
deleted file mode 100644
index 476b96a..0000000
--- a/RGens/data/sample-grammars/long-data/digit.gram
+++ /dev/null
@@ -1,12 +0,0 @@
-[digit] 0
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
-
-pragma initial-rule [digit]
diff --git a/RGens/data/sample-grammars/long-data/hex-digit.gram b/RGens/data/sample-grammars/long-data/hex-digit.gram
deleted file mode 100644
index 8d40aa9..0000000
--- a/RGens/data/sample-grammars/long-data/hex-digit.gram
+++ /dev/null
@@ -1,18 +0,0 @@
-[hex-digit] 0
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- a
- b
- c
- d
- e
- f
-
-pragma initial-rule [hex-digit]
diff --git a/RGens/data/sample-grammars/long-data/number-word.gram b/RGens/data/sample-grammars/long-data/number-word.gram
deleted file mode 100644
index 18d53fd..0000000
--- a/RGens/data/sample-grammars/long-data/number-word.gram
+++ /dev/null
@@ -1,12 +0,0 @@
-[number-word] → one
- two
- three
- four
- five
- six
- seven
- eight
- nine
- ten
-
-pragma initial-rule [number-word]
diff --git a/RGens/data/sample-grammars/long-data/numbers.gram b/RGens/data/sample-grammars/long-data/numbers.gram
new file mode 100644
index 0000000..8525102
--- /dev/null
+++ b/RGens/data/sample-grammars/long-data/numbers.gram
@@ -0,0 +1,99 @@
+[binary-digit] 0
+ 1
+
+pragma export-rule [binary-digit]
+
+[digit-noone] 0
+ 2
+ 3
+ 4
+ 5
+ 6
+ 7
+ 8
+ 9
+
+pragma export-rule [digit-noone]
+
+[digit-nonzero] 1
+ 2
+ 3
+ 4
+ 5
+ 6
+ 7
+ 8
+ 9
+
+pragma export-rule [digit-nonzero]
+
+[digit-twoup] 2
+ 3
+ 4
+ 5
+ 6
+ 7
+ 8
+ 9
+
+pragma export-rule [digit-twoup]
+
+[digit] 0
+ 1
+ 2
+ 3
+ 4
+ 5
+ 6
+ 7
+ 8
+ 9
+
+pragma export-rule [digit]
+
+[hex-digit] 0
+ 1
+ 2
+ 3
+ 4
+ 5
+ 6
+ 7
+ 8
+ 9
+ a
+ b
+ c
+ d
+ e
+ f
+
+pragma export-rule [hex-digit]
+
+[number-word] one
+ two
+ three
+ four
+ five
+ six
+ seven
+ eight
+ nine
+ ten
+
+pragma export-rule [number-word]
+
+[ordinal] first
+ second
+ third
+ fourth
+ fifth
+ sixth
+ seventh
+ eighth
+ ninth
+ tenth
+ eleventh
+ twelfth
+
+pragma export-rule [ordinal]
diff --git a/RGens/data/sample-grammars/long-data/ordinal.gram b/RGens/data/sample-grammars/long-data/ordinal.gram
deleted file mode 100644
index ceb697d..0000000
--- a/RGens/data/sample-grammars/long-data/ordinal.gram
+++ /dev/null
@@ -1,14 +0,0 @@
-[ordinal] first
- second
- third
- fourth
- fifth
- sixth
- seventh
- eighth
- ninth
- tenth
- eleventh
- twelfth
-
-pragma initial-rule [ordinal]