Andrew, have you tried this: r1: [r1: [any string!]] r2: [r2: [some word!]] a-parser: make object! compose [(r1) (r2)] regards david --- Andrew Martin <[EMAIL PROTECTED]> wrote: > Hi, David (and feedback), you wrote (directly: > > Have you found a satisfactory solution to reusing > grammar rules? > > Not yet. My best so far is to put common rules in an > object like: > Rules: make object! [ > Label: [Alpha some Alphanumeric] > ] > then refer to the rule in another object like: > Parser: make object! [ > Label: Rules/Label > Action: [ > Label ( > ; Do stuff here > ) > ] > ] > My next thoughts are to request object/path > support in 'parse rules from > Rebol HQ. Something like: > Action: [ > Rules/Label ( > ; My action here. > ) > ] > would be good to add to Rebol's 'parse dialect. > > Andrew Martin > ICQ: 26227169 http://members.nbci.com/AndrewMartin/ > -><- > > > -- > To unsubscribe from this list, please send an email > to > [EMAIL PROTECTED] with "unsubscribe" in the > subject, without the quotes. > __________________________________________________ Do You Yahoo!? Yahoo! Auctions - Buy the things you want at great prices. http://auctions.yahoo.com/ -- To unsubscribe from this list, please send an email to [EMAIL PROTECTED] with "unsubscribe" in the subject, without the quotes.
