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

[REBOL] Re: Complex Series Parsing (Part 2)

From: andrew:wxc at: 9-Mar-2001 22:55

Terry wrote:
> y: [<tag0></tag0> <text> this and that <tag1>those </tag1>and > these</text><tag2></tag2><text>There and then</text>]
Have you considered the effects of haveing "bare" words in your block? Wouldn't it be better if your text words were inside strings? Like: y: [<tag0></tag0> <text> {this and that} <tag1> "those " </tag1> {and these} </text> <tag2> </tag2><text> "There and then" </text>] Then strings with punctuation and invalid rebol words won't stop your script from running. Then it becomes a simple matter to pick out strings and tags in the block. Andrew Martin ICQ: 26227169 http://members.nbci.com/AndrewMartin/