<- Back to shtanton's homepage
aboutsummaryrefslogtreecommitdiff
path: root/subex/subexast.go
diff options
context:
space:
mode:
authorCharlie Stanton <charlie@shtanton.xyz>2023-04-26 11:04:36 +0100
committerCharlie Stanton <charlie@shtanton.xyz>2023-04-26 11:04:36 +0100
commit48017049f23d3f213fc6e1313f34526d0bba4489 (patch)
treeb363e53f5112589e0cbbd2e1e5e60c6f912ab65c /subex/subexast.go
parente5965749d17d5a70f92fdc981f863e85b7543838 (diff)
downloadstred-go-48017049f23d3f213fc6e1313f34526d0bba4489.tar
Update subex , literal to no longer include terminals
Diffstat (limited to 'subex/subexast.go')
-rw-r--r--subex/subexast.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/subex/subexast.go b/subex/subexast.go
index f5b1178..f4088fe 100644
--- a/subex/subexast.go
+++ b/subex/subexast.go
@@ -195,13 +195,13 @@ func (ast SubexASTCopyString) String() string {
return "#"
}
-// Read in a value and copy it out unchanged
-// , is equivalent to `null`|?|%|#|[`{}[]`]
+// Read in a non-terminal value and copy it out unchanged
+// , is equivalent to `null`|?|%|#
type SubexASTCopyValue struct {}
func (ast SubexASTCopyValue) compileWith(next SubexState, slotMap *SlotMap) SubexState {
return &SubexGroupState {
SubexASTCopyString{}.compileWith(next, slotMap),
- &SubexCopyNonStringAtomState {next},
+ &SubexCopyNonStringNonTerminalAtomState {next},
}
}
func (ast SubexASTCopyValue) String() string {