ferrugocc 0.4.0

An experimental C compiler and obfuscating compiler written in Rust, targeting x86_64 SysV ABI
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
//! 字句解析(Lexer)モジュール
//!
//! Cソースコードの文字列をトークン列に変換する。
//! コンパイラパイプラインの最初のステージ。
//!
//! ```text
//! "int main(void) { return 2; }"
//!   → [KwInt, Identifier("main"), OpenParen, KwVoid, CloseParen,
//!      OpenBrace, KwReturn, IntLiteral(2), Semicolon, CloseBrace]
//! ```

pub mod lexer;
pub mod token;

pub use lexer::lex;
pub use token::{Token, TokenKind};