Here's ebiester Icon example in the parse dialect:
s: "This is a string"
parse s [
any " " ;; skip past any leading blanks (none in this example!
any [ ;; repeat ANY while keeps matching (true)
copy word to [" " | end] ;; next word up to next blank or EOL
(print word) ;; print word
skip ;; skip past blank
]
]
Here's ebiester Icon example in the parse dialect:
And here is one translation of falsedan example: