chore: prepare to move tactic match parser back to Lean/Parser/Tactic
This commit is contained in:
parent
1c31240ebb
commit
a05ca020f4
1 changed files with 5 additions and 0 deletions
|
|
@ -15,6 +15,11 @@ builtin_initialize
|
|||
@[builtinTacticParser] def «unknown» := parser! withPosition (ident >> errorAtSavedPos "unknown tactic" true)
|
||||
@[builtinTacticParser] def nestedTactic := tacticSeqBracketed
|
||||
|
||||
def matchRhs := Term.hole <|> Term.syntheticHole <|> tacticSeq
|
||||
def matchAltsTemp := Term.matchAlts (rhsParser := matchRhs)
|
||||
|
||||
@[builtinTacticParser low] def «matchTemp» := parser!:leadPrec "match " >> sepBy1 Term.matchDiscr ", " >> Term.optType >> " with " >> matchAltsTemp
|
||||
|
||||
end Tactic
|
||||
end Parser
|
||||
end Lean
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue