backyard_parser/
macros.rs

1
2
3
4
5
6
7
8
9
10
11
#[macro_export]
macro_rules! guard {
  ($option:expr) => {
    match $option {
      Some(value) => value,
      None => {
        return Err(ParserError::Internal);
      }
    }
  };
}