2023-03-23 21:20:51 +00:00
|
|
|
//! ## usage
|
|
|
|
//!
|
|
|
|
//! ### tokenisation
|
2023-04-08 18:32:32 +00:00
|
|
|
//!
|
2023-03-23 21:20:51 +00:00
|
|
|
//! ```
|
|
|
|
//! 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;
|
2023-03-23 18:12:04 +00:00
|
|
|
pub mod tokenise;
|
2023-03-22 22:14:17 +00:00
|
|
|
mod util;
|
2023-03-21 21:50:02 +00:00
|
|
|
|
2023-03-23 18:12:04 +00:00
|
|
|
pub use self::obj::Line;
|