irctokens-rs/src/lib.rs

20 lines
409 B
Rust
Raw Permalink Normal View History

//! ## usage
//!
//! ### tokenisation
//!
//! ```
//! let bytes = b"@id=123 :jess!~jess@hostname PRIVMSG #chat :hello there!";
//! let line = irctokens::Line::tokenise(bytes).unwrap();
//! println!("{:?}", line.tags);
//! println!("{:?}", line.source);
//! println!("{}", line.command);
//! println!("{:?}", line.arguments);
//! ```
2023-03-22 22:14:17 +00:00
mod format;
mod obj;
pub mod tokenise;
2023-03-22 22:14:17 +00:00
mod util;
2023-03-21 21:50:02 +00:00
pub use self::obj::Line;