~starkingdoms/starkingdoms

ref: e291ccb936429d3fc3b021ce56c4f9b8b72e75d2 starkingdoms/kabel/src/macros.rs -rw-r--r-- 323 bytes
e291ccb9 — ghostlyzsh logical or and logical and 1 year, 4 months ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
#[macro_export]
macro_rules! token {
    ($self:expr, $token:expr) => {
        crate::lexer::Token {
            line: $self.line,
            line_start: $self.line_start,
            column: $self.column,
            start: $self.start,
            end: $self.current,
            token_type: $token,
        }
    };
}