in reply to Efficiently parsing a large file

Breezing through after being frustrated from work, but having to return to the grind ... how about forking? Everytime you encounter a 'begin', fork off a process and have it continue to search for the next two tokens.

Just a thought. :)

jeffa

L-LL-L--L-LL-L--L-LL-L--
-R--R-RR-R--R-RR-R--R-RR
B--B--B--B--B--B--B--B--
H---H---H---H---H---H---
(the triplet paradiddle with high-hat)