<- Back to shtanton's homepage
aboutsummaryrefslogtreecommitdiff
path: root/subex/parse.go
diff options
context:
space:
mode:
authorCharlie Stanton <charlie@shtanton.xyz>2023-03-05 09:11:09 +0000
committerCharlie Stanton <charlie@shtanton.xyz>2023-03-05 09:11:09 +0000
commitba20360431842bed56109a34e36416a3de5bf905 (patch)
tree70ba08b8227a1cb5a92437e30f1f3d00d1892a15 /subex/parse.go
parent62b61b1ea2bc8c5e5d447ddc4529b7977439804a (diff)
downloadstred-go-ba20360431842bed56109a34e36416a3de5bf905.tar
Changes the slot map so only runes can be used as slots
Diffstat (limited to 'subex/parse.go')
-rw-r--r--subex/parse.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/subex/parse.go b/subex/parse.go
index 1d64c20..16bc620 100644
--- a/subex/parse.go
+++ b/subex/parse.go
@@ -43,7 +43,7 @@ func parseReplacement(l *RuneReader) (output []TransducerOutput) {
if slot == eof {
panic("Missing slot character")
}
- output = append(output, TransducerReplacementLoad{atom: slot})
+ output = append(output, TransducerReplacementLoad{slot: slot})
case '@', '~', '#':
output = append(output, TransducerReplacementAtom{atom: parseTerminatorAtomLiteral(r, l)})
default: