Function ensure_syntax

Source
pub fn ensure_syntax(message: String, condition: bool)
Expand description

Ensures a Syntax condition is met or panic

Panics if condition is false

Mainly used for ensuring expected syntax is followed when parsing