A mini C lexical analyzer implementation, written in Rust, for the purpose of practicing Rust
Program writing and computer homework on writing compilation principles
- Keyword
- Identifier
- Delimiter
- Operator
- Literal
- String
- Char
- Integer
- Positive and negative signs
- Float
- Positive and negative signs
- Pointer
- Comments
- Single-Line
- Multi-Line
- Use
clap
to build CLI
-
Show help
cargo run -- --help
-
Analyze
*.c
filecargo run -- <FILE>