REPLACE statement
Created by: dvkt
This adds the REPLACE statement, which as an unimplemented TODO in the source:
REPLACE $str-expr FROM $str-expr WITH $str-expr IN $str-var
example:
DATA:
string IS text
PROCEDURE:
STORE "Please reject this Pull Request." IN string
REPLACE "reject" FROM string WITH "accept" IN string
DISPLAY string crlf
REPLACE "Pull Request" FROM string WITH "lizard" IN string
REPLACE "accept" FROM string WITH "admire" IN string
REPLACE "." FROM string WITH ": 🦎" IN string
DISPLAY string crlf
output:
Please accept this Pull Request.
Please admire this lizard: 🦎