in reply to Re^6: snakes and ladders
in thread snakes and ladders

As an optimization, sure. If I were doing this, I wouldn't spend much time on it until it paid off—getting something to walk the data structure or object graph and do the right thing is much more useful.

(The initial parsing phase probably won't be the source of performance problems or scaling, if you do it well.)