Also, how about support for io pipes to decouple the lexer from the parser, such that each could be in its own thread? Also, the input to the lexer could be an io pipe. Might be easier to place a pre-processor in front of the lexer this way, and also to handle gigantic files. Martin