Decl using the ast macro

This commit is contained in:
2026-05-15 01:33:43 +02:00
parent 80e17ffafb
commit 6fbc2a086e
2 changed files with 39 additions and 29 deletions
+4
View File
@@ -66,6 +66,10 @@ macro_rules! _ast_ti {
$val::try_from($inner.next().unwrap())
};
($inner:ident, ? $val:ident) => {
$inner.next().map($val::try_from).transpose()
};
($inner:ident, ? ($rule:path)) => {
$crate::parser::listen_rule(&mut $inner, $rule)
};