From 88a6f54ef3e199f6dfef67f7a6d037f29dd47245 Mon Sep 17 00:00:00 2001 From: sanine Date: Thu, 2 Jan 2025 18:40:21 -0600 Subject: begin implementing metagrammar for ddf --- grammar.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'grammar.lua') 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 = { '' } - local geneIndex = 0 local count = 0 local continue = true while continue do -- cgit v1.2.1