Crate palex[−][src]
A fast, small, dependency-free crate for lexing command-line arguments. You can use this crate if you want to build your own argument parsing library.
This crate is almost zero-cost, since it parses arguments lazily and avoids most heap allocations. There's no dynamic dispatch.
Check the examples
folder for examples.
Modules
part | Helper structs for checking if the next token matches your expectations and consuming the token thereupon. |
Structs
StringInput | The default input type for argument parsing. This is generic over its
iterator type and can be used with |
Enums
TokenKind | The kind of the current token. |
Traits
Input | The trait for types that can produce tokens from a list of command-line arguments. |