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

[REBOL] Re: Parsing question

From: gilette:echo at: 14-Apr-2003 16:44

I still don't get it... :-( I expect the following code to print "aaaa" and not "aaaa qqqq" as it does why does the some nonspacer grabs also the space ? spacer: charset [#" " #"^/"] nonspacer: complement spacer rules: [copy x some nonspacer (print x)] print parse "aaaa qqqq" rules I also expected the following code to print true and not false... spacer: charset [#" " #"^/"] nonspacer: complement spacer rules: [some nonspacer spacer some nonspacer] print parse "aaaa qqqq" rules Any explanations that i can understand :-) Thank you ! -- Serge Gilette ------------------------- 04 92 28 32 50