[REBOL] finding balanced occurences of two words... help needed Re:

2000-09-15 Thread rebol
Hi princepawn, and not in bed yet ... > s-size: [thru "setsize" (set-cmds: set-cmds + 1)] > rs-size: [thru "resetsize" (reset-cmds: reset-cmds + 1)] > rules: [any [rs-size | s-size] ] > > parse read file rules your rules contains the first rs-size and then s-size. The rs-size rule says [t

[REBOL] finding balanced occurences of two words... help needed

2000-09-15 Thread princepawn
REBOL [ Title: {Unbalanced set and reset commands alert function. Prints a warning when a file contains an unbalanced number of setsize and resetsize commands. Right now, for some reason, it only seems to count the resetsize text and not increment set-cmds... }] study-file: func