<- Back to shtanton's homepage
summaryrefslogtreecommitdiff
path: root/main/main.go
diff options
context:
space:
mode:
Diffstat (limited to 'main/main.go')
-rw-r--r--main/main.go5
1 files changed, 5 insertions, 0 deletions
diff --git a/main/main.go b/main/main.go
index be43d90..0466371 100644
--- a/main/main.go
+++ b/main/main.go
@@ -27,6 +27,11 @@ func (store Store) clone() Store {
}
return newStore
}
+func (store Store) withValue(key rune, value string) Store {
+ newStore := store.clone()
+ newStore[key] = value
+ return newStore
+}
func compileTransducer(transducerAst SubexAST) SubexState {
return transducerAst.compileWith(SubexNoneState{})