umjunsik 0.1.1

Umjunsik Language compiler targeting Lamina IR
Documentation
#[derive(Debug, Clone, PartialEq)]
pub enum Token {
    // Keywords
    Eotteohke,     // 어떻게 - program start
    IEotteonSaram, // 이 사람이름이냐ㅋㅋ - program end
    Eom,           // 엄 - assignment
    Eo,            // 어 - variable reference (can be repeated: 어, 어어, 어어어)
    Joon,          // 준 - goto
    Sik,           // 식 - console operations
    Dongtan,       // 동탄 - conditional
    Hwaiting,      // 화이팅 - return/exit

    // Operators
    Dot,   // . - increment
    Comma, // , - decrement
    Space, // (space) - multiply
    Tilde, // ~ - line separator (for one-line code)

    // Console
    Question,    // ? - input
    Exclamation, // ! - print number
    Kek,         // ㅋ - print char / end marker

    // Literal
    Number(i64), // calculated number from dots and commas

    // Special
    Newline,
    Eof,
}

#[derive(Debug, Clone)]
pub struct TokenWithPos {
    pub token: Token,
    pub line: usize,
    pub col: usize,
}