[REBOL] Re: Bug in parse?
From: robert:muench:robertmuench at: 22-Aug-2001 19:46
> -----Original Message-----
> From: [rebol-bounce--rebol--com] [mailto:[rebol-bounce--rebol--com]]On Behalf
> Of Richard Smolak
> Sent: Wednesday, August 22, 2001 5:43 PM
> To: [rebol-list--rebol--com]
> Subject: [REBOL] Re: Bug in parse?
> Thanks for your explanation. It sounds logical tome but I think 'parse
> should behave a little bit different in case of parsing ends of lines.
> Especially when we need to parse blocks like that:
>
> blk: [<bla> 12356 {
>
> abcd
>
> } <bla> 7890 ...]
>
> parse blk [some [set a string! (probe parse a "^/")| skip] to end]
>
> In that case cannot get the right count of lines in the parsed
> string...only solution is to add " " after all EOLs or maybe my method is
> wrong? Anyone?
Hi, note I didn't tested this so be careful ;-)
parse blk [ some [ copy mystring to newline (probe mystring) newline]]
Robert