mylang_lexer/
state.rs

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
//! 字句解析器の状態

pub mod i32;
pub mod str;
pub mod symbol;

use self::{i32::I32State, str::StrState, symbol::SymbolState};

/// 字句解析器内部の状態
#[derive(Clone, Debug)]
pub enum State {
    /// 初期状態
    Initial,
    I32(I32State),
    Str(StrState),
    Symbol(SymbolState),
}