heraclitus-compiler 1.8.0

Compiler frontend for developing great programming languages
Documentation
//! Lexer module
//!
//! This module holds all the lexer related modules

use crate::prelude::PositionInfo;

mod compound_handler;
pub mod lexer;
mod reader;
mod region_handler;

/// Lexer's error type
#[derive(Debug)]
pub enum LexerErrorType {
    /// Unspillable region has been spilled
    Singleline,
    /// Given region left unclosed
    Unclosed,
}

/// Type containing full error of lexer
pub type LexerError = (LexerErrorType, PositionInfo);