Mailing List Archive: 49091 messages
  • Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search
 

[REBOL] Re: YAPAQ

From: hallvard:ystad:oops-as:no at: 3-Mar-2004 14:45

Dixit Volker Nitsch (16.31 02.03.2004):
>Quotes are inbuild. so: >!>> parse >{word1 word2 "expression 1" "expression 2" word3 "expression 3"} "" >== ["word1" "word2" "expression 1" "expression 2" "word3" "expression 3"]
Yes, but:
>> a: parse {e1 e2 "e 3" e4 ee"e 5" e6 ^{e 7^}} none
== ["e1" "e2" "e 3" "e4" {ee"e} {5"} "e6" "{e" "7}"]
>> print third a
e 3 So 1) I need a parse rule that will see { } as string delimiters, and preferably also divide {ee"e 5"} into ["ee" "e5"] or [{ee"e 5"}] And 2) I want to keep the quotes, so that this could be the output:
>> print third a
e 3 Any help greatly appreciated. As I said, I think this problem has been solved here on the list before, but I can't seem to find out when. HY