<- Back to shtanton's homepage
aboutsummaryrefslogtreecommitdiff
path: root/subex/parse.go
diff options
context:
space:
mode:
Diffstat (limited to 'subex/parse.go')
-rw-r--r--subex/parse.go8
1 files changed, 4 insertions, 4 deletions
diff --git a/subex/parse.go b/subex/parse.go
index 16bc620..f2c77bc 100644
--- a/subex/parse.go
+++ b/subex/parse.go
@@ -29,7 +29,7 @@ func parseTerminatorAtomLiteral(termType rune, l *RuneReader) walk.Atom {
}
}
-func parseReplacement(l *RuneReader) (output []TransducerOutput) {
+func parseReplacement(l *RuneReader) (output []OutputContent) {
// TODO escaping
loop: for {
r := l.next()
@@ -43,11 +43,11 @@ func parseReplacement(l *RuneReader) (output []TransducerOutput) {
if slot == eof {
panic("Missing slot character")
}
- output = append(output, TransducerReplacementLoad{slot: slot})
+ output = append(output, OutputLoad{slot: slot})
case '@', '~', '#':
- output = append(output, TransducerReplacementAtom{atom: parseTerminatorAtomLiteral(r, l)})
+ output = append(output, OutputAtomLiteral{atom: parseTerminatorAtomLiteral(r, l)})
default:
- output = append(output, TransducerReplacementAtom{atom: r})
+ output = append(output, OutputAtomLiteral{atom: r})
}
}
return output