def Lean.Elab.Command.mkMacroRulesFun (cmdName : String) (k : SyntaxNodeKind) (alts : Array (TSyntax `Lean.Parser.Term.matchAlt)) :
Returns a Macro that runs the right-hand side of the first alternative in alts whose pattern
matches, and throws Macro.Exception.unsupportedSyntax if there is none. Checks that the patterns
are quotations of syntax of kind k, naming the command cmdName in errors.
Equations
- One or more equations did not get rendered due to their size.
Instances For
def Lean.Elab.Command.elabMacroRulesAux (doc? : Option (TSyntax `Lean.Parser.Command.docComment)) (attrs? : Option (Syntax.TSepArray `Lean.Parser.Term.attrInstance ",")) (attrKind : TSyntax `Lean.Parser.Term.attrKind) (tk : Syntax) (k : SyntaxNodeKind) (alts : Array (TSyntax `Lean.Parser.Term.matchAlt)) :
Remark: k is the user provided kind with the current namespace included.
Recall that syntax node kinds contain the current namespace.
Equations
- One or more equations did not get rendered due to their size.
Instances For
Equations
- One or more equations did not get rendered due to their size.