From 6f107b7a0ccfbcd3e2ec05d91c98877d9b2e0fc7 Mon Sep 17 00:00:00 2001 From: Charlie Stanton Date: Sun, 5 Mar 2023 10:00:28 +0000 Subject: Renames TransducerOutput to OutputContent (and related types) and moves into main/subexstate.go --- subex/parse.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'subex/parse.go') 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 -- cgit v1.2.3