diff options
Diffstat (limited to 'subex/subexast.go')
-rw-r--r-- | subex/subexast.go | 9 |
1 files changed, 8 insertions, 1 deletions
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 |