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

[REBOL] Re: Parse: Restaring rule evaluation

From: robert:muench:robertmuench at: 16-Nov-2001 14:32

> -----Original Message----- > From: [rebol-bounce--rebol--com] [mailto:[rebol-bounce--rebol--com]]On Behalf Of > Brett Handley > Sent: Thursday, November 15, 2001 11:53 PM > To: [rebol-list--rebol--com] > Subject: [REBOL] Re: Parse: Restaring rule evaluation > I don't understand. Could you supply an example please?
Hi, ok: rules: [ rule1 | rule2 | rule3 | rul4 call rule5 ] rule5: [ rule51 rule5 | rule52 rule5 | rule53 rul5 ] Now: If parse starts with rules and rule2 can be satisifed it doesn't continue with rule3 but restarts with rule1. Why? How does the pattern look like if a sub-rule in rule5 can't be satisfied? Return to where the rule5 block was called? I would be happy if the call/return pattern for grammars would be documented. To me it doesn't seem to be to obvious? Does a 'newline trigger a start at rule1 in all cases? What are the events to restart with rule1? Robert