//! A library with common code for parsing Minecraft specification files.
pub mod parse;
pub mod tokenize;
/// Ensure that the given condition is true, otherwise return the given value.
#[macro_export]
macro_rules! ensure {
($cond:expr, $ret:expr) => {
if !$cond {
return Err($ret);
}
};
}