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

[REBOL] Re: Parse: Restaring rule evaluation

From: lmecir:mbox:vol:cz at: 17-Nov-2001 14:17

Hi,
> So, no restart happened (exactly as I expected). At the same time, there
is
> no reason why RULE3 or any other rule should be used, when RULE2 was > satisfied.
<< Why not? If there is more input and parse satisfied one rule it "starts" over to parse the rest of the input with the actual rule set. But it might continue to evaluate the rest of the rule set with the new input... don't know if this would yield in a speed improvement but either choice could be selected. Why go for starting over? Robert
>>
I should have said it more precisely: PARSE doesn't restart the rule to find another possibility that could "consume" more input. This is the way how PARSE is implemented.