1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
use crate::span::Span; #[derive(Clone, Debug, PartialEq, Eq)] pub enum TokenKind { Line(String), Blank, Eof, } #[derive(Clone, Debug)] pub struct Token { pub kind: TokenKind, pub span: Span, pub indent: u16, }