chore: make it clear that implementation relies on the fact that both branches of the if-then-else generate a node with the same kind
Motivation: we want to change the kind used in the `group` combinator.
This commit is contained in:
parent
390a476caf
commit
2b9df7d8b9
1 changed files with 1 additions and 1 deletions
|
|
@ -91,7 +91,7 @@ def optType : Parser := optional typeSpec
|
|||
@[builtinTermParser] def explicit := leading_parser "@" >> termParser maxPrec
|
||||
@[builtinTermParser] def inaccessible := leading_parser ".(" >> termParser >> ")"
|
||||
def binderIdent : Parser := ident <|> hole
|
||||
def binderType (requireType := false) : Parser := if requireType then group (" : " >> termParser) else optional (" : " >> termParser)
|
||||
def binderType (requireType := false) : Parser := if requireType then node nullKind (" : " >> termParser) else optional (" : " >> termParser)
|
||||
def binderTactic := leading_parser atomic (symbol " := " >> " by ") >> Tactic.tacticSeq
|
||||
def binderDefault := leading_parser " := " >> termParser
|
||||
def explicitBinder (requireType := false) := ppGroup $ leading_parser "(" >> many1 binderIdent >> binderType requireType >> optional (binderTactic <|> binderDefault) >> ")"
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue