From 48017049f23d3f213fc6e1313f34526d0bba4489 Mon Sep 17 00:00:00 2001 From: Charlie Stanton Date: Wed, 26 Apr 2023 11:04:36 +0100 Subject: Update subex , literal to no longer include terminals --- subex/subexast.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'subex/subexast.go') 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 { -- cgit v1.2.3