diff options
author | Charlie Stanton <charlie@shtanton.xyz> | 2023-04-19 12:31:07 +0100 |
---|---|---|
committer | Charlie Stanton <charlie@shtanton.xyz> | 2023-04-19 12:31:07 +0100 |
commit | 61fd31368f26637a353cde6402b9a353b6b82e8b (patch) | |
tree | 25be689e78b5f9bb375a8900bcbae61e085b5f55 /subex/main.go | |
parent | 1c2d7a4e9258ed72f5c8ebecc3d575d065f25c5d (diff) | |
download | stred-go-61fd31368f26637a353cde6402b9a353b6b82e8b.tar |
Replaces a few instances of SubexStates with pointers as they should be
This potentially avoids bugs/errors and also improves the performance of pruning
Diffstat (limited to 'subex/main.go')
-rw-r--r-- | subex/main.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/subex/main.go b/subex/main.go index 4451a00..091625b 100644 --- a/subex/main.go +++ b/subex/main.go @@ -26,7 +26,7 @@ func (store Store) withValue(key rune, value []walk.Atom) Store { // Compile the SubexAST into a transducer SubexState that can be run func CompileTransducer(transducerAst SubexAST) SubexState { - return transducerAst.compileWith(SubexNoneState{}) + return transducerAst.compileWith(&SubexNoneState{}) } // An immutable stack for outputting to |