feat: add terminationByCore parser
This commit is contained in:
parent
ca89da28d0
commit
ce76ad44ea
1 changed files with 2 additions and 1 deletions
|
|
@ -31,9 +31,10 @@ def terminationHint1 (p : Parser) := leading_parser p
|
|||
def terminationHint (p : Parser) := terminationHintMany p <|> terminationHint1 p
|
||||
|
||||
def terminationBy := leading_parser "termination_by " >> terminationHint termParser
|
||||
def terminationByCore := leading_parser "termination_by' " >> terminationHint termParser
|
||||
def decreasingBy := leading_parser "decreasing_by " >> terminationHint Tactic.tacticSeq
|
||||
|
||||
def terminationSuffix := optional terminationBy >> optional decreasingBy
|
||||
def terminationSuffix := optional (terminationBy <|> terminationByCore) >> optional decreasingBy
|
||||
|
||||
@[builtinCommandParser]
|
||||
def moduleDoc := leading_parser ppDedent $ "/-!" >> commentBody >> ppLine
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue