You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
alt is now reimplemented here: https://github.com/Geal/nom/blob/master/src/branch/mod.rs#L89-L93
it works by accepting a tuple of parsers as argument.
I'm not sure switch should really be reimplemented, since it can be written directly as a pattern match. permutation will be tricky to do
after some tests, it appears switch! can easily be replaced with a closure that does pattern matching before calling other parsers. permutation is still not done
I got started on a function version of
alt
insrc/branch/mod.rs
. The combinators to rewrite are insrc/branch/macros.rs
. To rewrite:alt
alt_complete
(maybe remove this one?)switch
permutation
: that's a big one, but it might be easier to rewrite as a functionThe text was updated successfully, but these errors were encountered: