class WhitespaceConsumer inherits IStringConsumer { consume(s: String) : Int {{ consumed_length <- 0; while or(s.substr(consumed_length, 1) = " ", s.substr(consumed_length, 1) = "\t") loop consumed_length <- consumed_length + 1 pool; consumed_length; }}; token() : IToken { new WhitespaceToken }; };