[REBOL] Re: Complex Series Parsing (Part 2)
From: depotcity:home at: 9-Mar-2001 9:48
The entire string represents a series of events over time, starting at the
top of the output, and making its way down. The tags "fire" as they are
processed, and the corresponding ending tags </tag1> represent "stop" The
<text> tag is can have these other "events" embedded. In my particular
case, no non <text> tags will have other non <text> tags embedded within,
but I imagine one day they would.
y: [<tag0></tag0> <text> this and that <tag1>those </tag1>and
these</text><tag2></tag2><text>There and then</text>]
out: [
<tag0> ; fire
</tag0> ; stop
<text> this and that ;fire
<tag1> ;fire
<text> those ;continue
</tag1> ;stop
<text> and these ;continue
</text> ;stop
<tag2> ; fire
</tag2> ;stop
<text> There and then ;fire
</text> ;stop
]