lib/grammar/ast/control/stop.rs
1use pest::iterators::Pair;
2use serde::Serialize;
3
4use crate::grammar::parser::Rule;
5
6#[derive(Debug, Clone, Eq, PartialEq, Serialize)]
7#[serde(tag = "kind")]
8pub struct ControlStop {}
9
10impl Default for ControlStop {
11 fn default() -> Self {
12 Self {}
13 }
14}
15
16impl<'r> From<Pair<'r, Rule>> for ControlStop {
17 fn from(pair: Pair<'r, Rule>) -> Self {
18 let _ = pair;
19 Self {}
20 }
21}