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
- ref : Lean.Syntax
- patterns : Array Lean.Syntax
- rhs : Lean.Syntax
Instances For
Equations
- Lean.Elab.Term.instInhabitedMatchAltView = { default := { ref := default, patterns := default, rhs := default } }