fn emit(&mut self, t: TokenType) {
        let text = &self.input[self.start..self.pos];
        let _ = self.chan.send(Token {
            typ: t,
            val: text.to_string(),
            row: self.row,
            col: self.col,
        });
        self.start = self.pos;
    }
/// emit passes the current token back to the client via the channel.
emit passes the current token back to the client via the channel.
emit passes the current token back to the client via the channel .
fn emit(&mut self, t: TokenType) {
        let text = &self.input[self.start..self.pos];
        let _ = self.chan.send(Token {
            typ: t,
            val: text.to_string(),
            row: self.row,
            col: self.col,
        });
        self.start = self.pos;
    }
fn emit ( & mut self , t : TokenType ) { let text = & self . input [ self . start .. self . pos ] ; let _ = self . chan . send ( Token { typ : t , val : text . to_string ( ) , row : self . row , col : self . col , } ) ; self . start = self . pos ; }
emit passes the current token back to the client via the channel.
emit passes the current token back to the client via the channel .
&mut self
t
TokenType