summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xdata/new-sample-grammars/cbs.gram20
-rwxr-xr-xdata/sample-grammars/career.gram14
-rwxr-xr-xtodos.txt7
3 files changed, 15 insertions, 26 deletions
diff --git a/data/new-sample-grammars/cbs.gram b/data/new-sample-grammars/cbs.gram
index 215d8d3..fa70a40 100755
--- a/data/new-sample-grammars/cbs.gram
+++ b/data/new-sample-grammars/cbs.gram
@@ -1375,13 +1375,7 @@ pragma export-rule [proposition]
going forward, [proposition]
actually, [proposition]
-[articulate-proposition] [proposition]
- [proposition]
- [proposition]
- [proposition]
- [proposition]
- [proposition]
- [proposition]
+[articulate-proposition] {^8} [proposition]
[articulate-proposition-1]
pragma export-rule [articulate-proposition]
@@ -1390,15 +1384,9 @@ pragma export-rule [articulate-proposition]
pragma export-rule [sentence]
-[sentences] [sentence]
- [sentence] [sentences]
- [sentence] [sentences]
- [sentence] [sentences]
- [sentence] [sentences]
- [sentence] [sentences]
- [sentence] [sentences]
- [sentence] [sentences]
- [sentence] [sentences]
+[sentences] {^2} {&1..4} [sentence]
+ {^4} {&4..8} [sentence]
+ {&8..12} [sentence]
pragma export-rule [sentences]
pragma initial-rule [sentences]
diff --git a/data/sample-grammars/career.gram b/data/sample-grammars/career.gram
index 5a6a694..556ba6f 100755
--- a/data/sample-grammars/career.gram
+++ b/data/sample-grammars/career.gram
@@ -4,7 +4,7 @@ pragma initial-rule [career-tech-desc]
pragma prefix-with [career-tech-desc] [career-tech-desc-pref]
-pragma suffix-with [career-tech-desc] [career-tech-descsuff] [career-tech-descsuff]
+pragma suffix-with [career-tech-desc] {&1..2} [career-tech-descsuff]
[career-tech-desc-pref] [career-prefsuf] of the
@@ -20,12 +20,7 @@ pragma suffix-with [career-tech-desc] [career-tech-descsuff] [career-tech-descsu
pragma export-rule [career-techname]
-[career-tech] [career-tech2]
- [career-tech2]
- [career-tech2]
- [career-tech2]
- [career-tech2]
- [career-tech2]
+[career-tech] {^6} [career-tech2]
[quote-career-tech] and [quote-career-tech]
[quote-career-tech] , [quote-career-tech] and [quote-career-tech]
@@ -37,8 +32,9 @@ pragma export-rule [career-tech]
pragma despace-rule [quote-career-tech]
-[career-tech2] [act-career-tech] (reports to the [career-tech] )
- [act-career-tech] (reports to [full-name-and-title] )
+[career-tech2] {^10} [act-career-tech]
+ [act-career-tech] (reports to the [career-tech] )
+ {^2} [act-career-tech] (reports to [full-name-and-title] )
[act-career-tech] paper pusher
computer [software-career-type]
diff --git a/todos.txt b/todos.txt
index 79b186f..664c995 100755
--- a/todos.txt
+++ b/todos.txt
@@ -1,6 +1,7 @@
-@TODO 10/11/17 Ben Culkin :Determinism
+DONE(6/3/18) 10/11/17 Ben Culkin :Determinism
Add a way to get the grammar to pick rules in a deterministic fashion,
so as to be able to iterate all of the rules.
+ - Specify the same Random instance to the state
@TODO 10/11/17 Ben Culkin :ExportSanity
Figure out a way to organize exports instead of just sticking them all
@@ -48,3 +49,7 @@
@TODO 5/10/18 Ben Culkin :RuleInclusion
Add some way to sort of 'import' a rules body into another rule so as to
not throw off probability by splitting.
+
+@TODO 6/3/18 Ben Culkin :DieRandom
+ Add a way to use dice from dicelang (probably the rewrite, once that has
+ a string parser) to create random numbers