Main Page/Topic Parse

From Programming in RED

Notes:

_copy word any rule_ copies from the current position to the last position matched from a rule

_any copy word rule_ copies from the last match (no after)

parse ["a" "b" "c" d] [any [copy val string! (? val)] 'b] ; print each occurrence

Similar functioning for set same as set

set word any rule, sets the word from the first to the last item of the rule?

pos: rule, sets the current position before the rule rule pos:, set pos to the position after the rule

any pos: rule , pos: is considered as a rule!