PARSE REMOVE COPY var rule doesn't copy #1244
Labels
CC.resolved
Issue with CureCode status built, tested or complete
Status.important
Test.written
Type.bug
Type.parse
Parse related issues
Submitted by: Steeve
So, the [remove] treats well the [skip], but discards the contents of [copy val].
Now, see:
The contents of [val] is preserved in that case, don't know why here, but not above...
Imported from: CureCode [ Version: alpha 84 Type: Bug Platform: All Category: Parse Reproduce: Always Fixed-in:alpha 86 ]
Imported from: metaeducation#1244
Comments:
Submitted by: BrianH
My guess is that the remove is being performed before the copy. To be useful, the remove should be performed after the copy.
Submitted by: Carl
The example code now produces the required result.
However, note that the application order of COPY, SET, RETURN, REMOVE, INSERT, and CHANGE is fixed (in that order.)
These words are flags, not functions. (They don't push onto a stack, they simply set bit flags for processing after the rule is matched.)
The text was updated successfully, but these errors were encountered: