summaryrefslogtreecommitdiff
path: root/grammar.lua
diff options
context:
space:
mode:
Diffstat (limited to 'grammar.lua')
-rw-r--r--grammar.lua4
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