From: Trans Date: 2005-01-25T23:05:54+09:00 Subject: Re: Complex Library Object/Class and its Interface " I think you may be making this more difficult than it is. What " are you trying to achieve? Yes, I think that's part of it. I haven't been able to get my head around exactly what is at the heart of the problem. So I've thought about it some more and played around with everyones suggestions. THANK YOU ALL for those suggestions btw! I realized I made a slight mistake about the inhertience issue. It doesn't actually buy me anything unless there is an instance var embedded in the regular expression so that they'll vary from token to token. But that turns out to be tricky too, in just such a way, in fact, as to lead me to realize what's really going on. Essentially I do indeed have two different things: a "match token" that determines how the parser finds tokens, and a "build token" that the parser will create from what it finds. The trick is that the two have a ONE-TO-ONE coorespondance --for a given match token object there is one and only one build token class. So that's what is messing me up. How do I code that cleanly? Thanks, T.