This module assumes match-expressions use the following syntax.
def matchDiscr := leading_parser optional (try (ident >> checkNoWsBefore "no space before ':'" >> ":")) >> termParser
def «match» := leading_parser:leadPrec "match " >> sepBy1 matchDiscr ", " >> optType >> " with " >> matchAlts
Instances For
Equations
Instances For
@[implicit_reducible]
instance
Lean.Elab.Term.instInhabitedMatchAltView
{a✝ : SyntaxNodeKinds}
:
Inhabited (MatchAltView a✝)