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

[REBOL] Re: Parse limitation ?

From: maximo:meteorstudios at: 8-Oct-2003 12:29

> -----Original Message----- > From: Gabriele Santilli [mailto:[g--santilli--tiscalinet--it]] > Sent: Wednesday, October 08, 2003 11:42 AM > To: Petr Krenzelok > Subject: [REBOL] Re: Parse limitation ? > > I think that it is better to think of the problem in a different > way, because it allows you to understand things much better. If > you switch to think about grammars instead of patterns you'll find > out that your problems get simpler, not more complicated. IMHO. >
can you give a short example of a grammar that would extract the text from <tag! tag content <subtag! its content?> <p> paragraph info</p>content end> and returns a block such as: [ tag! [ "tag content" subtag! [ "its content?" ] p [ "paragraph info" ] "content end" ] ] I have no idea How I would approach this! this could be a nice tutorial for us "less gifted" parsers. -MAx