[REBOL] Parsing question
From: robert::muench::robertmuench::de at: 9-Aug-2001 19:56
Hi, in make-doc-pro I have a block of parsing rules like this:
newline
| "sometag" someaction
| ...
| paragraph
paragraph: [copy para to newline]
I would like to parse thru the chars of the paragraph as well, to perform some
further actions. So I wold like to parse for a pattern like *bold*. Therefore I
tried:
paragraph: [ to "*" 1 skip copy boldtext "*"
|copy para to newline]
But this doesn't work, as the rule is only triggered once. Than I tried to add a
'some rule and expected the rule to "return" as soon as one of the given rules
were used.
paragraph: [ some [
to "*" 1 skip copy boldtext "*" 1 skip
|copy para to newline]
]
But this doesn't work too.
How do I handle the parsing of a sequence in sub-rule to find some tags and act
on these tags inside the sequence? Robert