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

[REBOL] Re: Parsing question

From: gilette::echo::fr at: 14-Apr-2003 18:04

YEsssss thank you :-) i missed the point with the /all :-) Ladislav Mecir wrote:
>Hi Serge, > >>Thanks for your answer. >>Curiously this does not seems to work. The rule round_played has a glutton >>comportment and grab eveything even if it includes a space... >> >> > > digit: charset [#"0" - #"9"] > spacer: charset [#" " #"^/"] > nonspacer: complement spacer > round_number: [copy x some digit #"." (print join "tour=" x)] > round_played: [copy y any nonspacer (print join "played=" y)] > round_comment: [#"{" copy comm to #"}" (print comm) any nonspacer] > round: [any spacer round_number round_played any spacer round_played any spacer opt round_comment] > game: [some round] > rules: [game to end] > > parse/all "1.d3 d5 2.Nf3 Nf6 3.Bd2 c5 4.g3 Nc6 {a comment} 5.Na3 e6 6.b3 Be7" rules > >Is this what you wanted? > >Regards >-Ladislav >
-- Serge ------------------------- 04 92 28 32 50