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

Simple Parse query

 [1/2] from: philb::upnaway::com at: 23-Jul-2001 15:21


Hi all, I have a very simple parse query .... consider the following : from the console I type a: { a b c "d e f g} print parse a " " the output I get is ["a" "b" "c" "d e f g"] its as though Rebol is assuming the unclosed quote should be closed at the end of the string. Is this a bug or me not understanding how parse works? Cheers Phil

 [2/2] from: brett:codeconscious at: 23-Jul-2001 18:33


Hi Phil,
> its as though Rebol is assuming the unclosed quote should be closed at the
end of the string. I think you are spot on. It seems that parse has some default "rules" built in which are used if you supply some delimiting characters instead of a rules block. The characters you supply appear to be added to the built in default delimiting characters unless you supply the /all refinement, in which case the characters you supply are used exclusively as delimiting characters. Though the quoted string rule seems to be retained. Regards, Brett