From bed0e712deda5038f52e495bacae003098df7a55 Mon Sep 17 00:00:00 2001 From: Charlie Stanton Date: Fri, 21 Jul 2023 16:42:49 +0100 Subject: Reimplements inserting basic values using subexes --- subex/subexast.go | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'subex/subexast.go') diff --git a/subex/subexast.go b/subex/subexast.go index 31c77ba..b1ac931 100644 --- a/subex/subexast.go +++ b/subex/subexast.go @@ -246,7 +246,14 @@ type OutputValueLiteralAST struct { atom walk.Value } func (ast OutputValueLiteralAST) compile(slotMap *SlotMap) OutputContent { - return OutputAtomLiteral {ast.atom} + return OutputValueLiteral {ast.atom} +} + +type OutputRuneLiteralAST struct { + rune walk.StringRuneAtom +} +func (ast OutputRuneLiteralAST) compile(slotMap *SlotMap) OutputContent { + return OutputRuneLiteral {ast.rune} } // Output a series of Atoms without reading anything from input -- cgit v1.2.3