Simple question
[1/4] from: mat:eurogamer at: 25-Nov-2000 16:48
Guys,
I've been trying to get my head around parse, trying to come up with a
way to split a string (a buffer from a port actually) into a block by
newlines.
You can't do IO stuff from port with /lines refinement, so I need a
way to go parsing stuff back from a server from the buffer.
I can rip out the first line easily enough with;
parse test [copy freshline to newline]
But how could I make a block with ALL the lines in the buffer?
--
Mat Bettinson - EuroGamer's Gaming Evangelist with a Goatee
http://www.eurogamer.net | http://www.eurogamer-network.com
[2/4] from: russ:portone at: 25-Nov-2000 12:12
unparsed: copy portname
parsed: parse/all unparsed "^/"
At 04:48 PM 11/25/00 +0000, you wrote:
[3/4] from: mat:eurogamer at: 25-Nov-2000 18:17
Heya Russ,
R> unparsed: copy portname
R> parsed: parse/all unparsed "^/"
Heh, I tried exactly the same thing but using newline. Silly of me :)
--
Mat Bettinson - EuroGamer's Gaming Evangelist with a Goatee
http://www.eurogamer.net | http://www.eurogamer-network.com
[4/4] from: g::santilli::tiscalinet::it at: 27-Nov-2000 15:34
Mat Bettinson wrote:
> parse test [copy freshline to newline]
>
> But how could I make a block with ALL the lines in the buffer?
parse test "^/"
HTH,
Gabriele.
--
Gabriele Santilli <[giesse--writeme--com]> - Amigan - REBOL programmer
Amiga Group Italia sez. L'Aquila -- http://www.amyresource.it/AGI/