Hi Jeff,

extreme. 

Elan

At 11:56 AM 10/14/99 -0700, you wrote:
[snip]
>  Well, you gotta tell PARSE what exactly it is you want it to
>  do.  Here's a quick and dirty approach.
>
>  result: copy []
>  
[using the newer code for foreach ...]
>  foreach [rule thing] [space-piece " " end-piece 'end][
>    set rule compose [copy x to (thing) ([(append result x)])]
>  ]
>
>  parse {this is a "test"} [some space-piece end-piece]
>  print mold result
>
>  == ["this" "is" "a" {"test"}]
>
>  Of course the (append result x) might be changed to:
>
>  (append result replace/all x ":" "_")
>
>  Or something--- bit of an in-band signaling problem
>  thar. Some escaping process has to go on for those colons,
>  eh?
>
>  Hope that's useful for ya. 
>  
>  -jeff
>
>
>

Reply via email to