diff options
author | Charlie Stanton <charlie@shtanton.xyz> | 2023-03-05 10:00:28 +0000 |
---|---|---|
committer | Charlie Stanton <charlie@shtanton.xyz> | 2023-03-05 10:00:28 +0000 |
commit | 6f107b7a0ccfbcd3e2ec05d91c98877d9b2e0fc7 (patch) | |
tree | 3f2831b0dee324473962bb78f2f6b459dff048cb /subex/parse.go | |
parent | ba20360431842bed56109a34e36416a3de5bf905 (diff) | |
download | stred-go-6f107b7a0ccfbcd3e2ec05d91c98877d9b2e0fc7.tar |
Renames TransducerOutput to OutputContent (and related types) and moves into main/subexstate.go
Diffstat (limited to 'subex/parse.go')
-rw-r--r-- | subex/parse.go | 8 |
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 |