diff options
| author | sanine <sanine.not@pm.me> | 2025-01-02 18:40:21 -0600 | 
|---|---|---|
| committer | sanine <sanine.not@pm.me> | 2025-01-02 18:40:21 -0600 | 
| commit | 88a6f54ef3e199f6dfef67f7a6d037f29dd47245 (patch) | |
| tree | 771f22ebaacb8bf5342e55491404d4d7b9e2dcbd /grammar.lua | |
| parent | 81c38745be62a90de537c50cfbd777a9d582dadf (diff) | |
begin implementing metagrammar for ddf
Diffstat (limited to 'grammar.lua')
| -rw-r--r-- | grammar.lua | 4 | 
1 files changed, 2 insertions, 2 deletions
| diff --git a/grammar.lua b/grammar.lua index 286723d..d4adf32 100644 --- a/grammar.lua +++ b/grammar.lua @@ -59,10 +59,10 @@ function Grammar.expandSequence(self, sequence, n)  end -function Grammar.expand(self, genome, maxLength) +function Grammar.expand(self, genome, geneIndex, maxLoops) +  geneIndex = 0    maxLoops = maxLoops or 2    local sequence = { '<start>' } -  local geneIndex = 0    local count = 0    local continue = true    while continue do | 
