[doctools] Migrate to Lexer object, and stub out LookAhead() logic