valkyrie-parser 0.2.5

The hand write parser of valkyrie language
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
use super::*;

impl crate::DotMatchCallNode {
    pub(crate) fn build(&self, ctx: &mut ProgramState) -> Result<MatchCallNode> {
        let monadic = self.op_and_then.is_some();

        Ok(MatchCallNode {
            monadic,
            base: Default::default(),
            kind: self.kw_match.build(),
            patterns: self.match_block.build(ctx),
            span: self.span.clone(),
        })
    }
}