On Wed, Feb 12, 2003 at 10:50:30AM +0000, Angus Leeming wrote: > >> Sure. One question. Would ' - 4,5 cM ' count as one token or two? > > > > Six. - 4 5 , c M. > > > > The conversion has to be done on output. > > ??? Ok. You tokenise and then parse. Fair enough.
But wrong. Tokenization should happen "lazy". > But presumably these 6 tokens are used to initialise the width argument of a > minibuffer for example. So, having created the contents of the width > argument I have a single variable to 'regularize'. > > If not, could you paint a picture of what you expect to happen because > you're confusing me. I expect to use if (name == "minipage") { string width = p.verbatimItem(); os << "begin_inset Minipage ...." << canonicalLength(width); parse(p, os, FLAG_END); os << "end_inset; } Andre' -- Those who desire to give up Freedom in order to gain Security, will not have, nor do they deserve, either one. (T. Jefferson)