<- Back to shtanton's homepage
aboutsummaryrefslogtreecommitdiff
path: root/subex/subexast.go
diff options
context:
space:
mode:
authorCharlie Stanton <charlie@shtanton.xyz>2023-07-21 16:42:49 +0100
committerCharlie Stanton <charlie@shtanton.xyz>2023-07-21 16:42:49 +0100
commitbed0e712deda5038f52e495bacae003098df7a55 (patch)
tree09f3b86927efc6a0cef4f7fdf509c1731cc4b86d /subex/subexast.go
parentc52794f9d420e319900f27e9f16c8444e8842e92 (diff)
downloadstred-go-bed0e712deda5038f52e495bacae003098df7a55.tar
Reimplements inserting basic values using subexes
Diffstat (limited to 'subex/subexast.go')
-rw-r--r--subex/subexast.go9
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