>> set [a b c d] parse "1 2 3 4" none == ["1" "2" "3" "4"] >> a == "1" >> b == "2" >> c == "3" >> d == "4"
? On Sat, 8 Jan 2005, Eric Haddix wrote: > > I'm an old school Amiga programmer(which probably means I'm among many > old friends) and was especially fond of Arexx. Well that thought brought > me to this post... > > The parse command seems to need improvement unless I'm not understanding > it and I think that a great place to start might be by looking at what > Arexx does. For example. I have several projects that require a single > input line to be parsed into several variables. If I'm understanding > Rebol's parse command, it can only do one variable at a time, Arexx did > them until you were satisfied...so instead of multiple or recursive > parse commands you could do "parse input "abc" variable1 "def" variable2 > "ghi" variable3 "jkl" " It's as simple as that for the most part. You > can vary how the delimiters work with wildcard functions like "abc#?def" > which means that there are some characters between 'c' and 'd' that are > unknown in length. It's been a while since I used Arexx so forgive me if > my syntax is off a bit. > > Anyway, if this is possible with a single line, please show me an > example since the one on the language dictionary seems very limited. And > if it isn't possible currently, what would be necessary to make it possible? > > Eric > -- > To unsubscribe from the list, just send an email to rebol-request > at rebol.com with unsubscribe as the subject. > -- To unsubscribe from the list, just send an email to rebol-request at rebol.com with unsubscribe as the subject.
