1/// Ensures a Syntax condition is met or panic
2///
3/// Panics if condition is `false`
4///
5/// Mainly used for ensuring expected syntax is
6/// followed when parsing
7pub fn ensure_syntax(message: String, condition: bool) {
8if !condition {
9panic!("Error parsing: {message}");
10 }
11}