dcbor-pattern 0.11.1

Pattern matcher for dCBOR
Documentation
1
2
3
4
5
6
7
8
use crate::{Pattern, Result};

pub(crate) fn parse_date(
    _lexer: &mut logos::Lexer<crate::parse::Token>,
) -> Result<Pattern> {
    // With the new simplified syntax, "date" without quotes matches any date
    Ok(Pattern::any_date())
}