kodept-parse 0.3.0

Simple compiler with dependent types support in mind
Documentation
1
2
3
4
5
6
7
8
9
10
11
use derive_more::Constructor;

use kodept_core::structure::span::Span;

use crate::lexer::Token;

#[derive(Debug, Clone, PartialEq, Constructor, Copy)]
pub struct TokenMatch<'t> {
    pub token: Token<'t>,
    pub span: Span,
}