forked from Orchid/orchid
Mainly worked on the rule matcher
Also fixed the name collector, and lambda parameters are no longer resolved at parsing to support planned macro-based pattern matching. The rule matcher clones a lot, the number of clones could be zero.
This commit is contained in:
6
src/utils/unwrap_or_continue.rs
Normal file
6
src/utils/unwrap_or_continue.rs
Normal file
@@ -0,0 +1,6 @@
|
||||
#[macro_export]
|
||||
macro_rules! unwrap_or_continue {
|
||||
($m:expr) => {
|
||||
{ if let Some(res) = ($m) {res} else {continue} }
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user