specmc-base 0.1.8

A library with common code for parsing Minecraft specification.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
//! A library with common code for parsing Minecraft specification.

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);
        }
    };
}