feat: matches
This commit is contained in:
parent
459e2e8cea
commit
bae919355e
1 changed files with 4 additions and 0 deletions
|
|
@ -201,6 +201,10 @@ macro_rules
|
|||
else
|
||||
`(%[ $elems,* | List.nil ])
|
||||
|
||||
-- TODO: should be `infix:50 " matches " => fun e p => match e with | p => true | _ => false`
|
||||
macro:50 e:term:51 " matches " p:term:51 : term =>
|
||||
`(match $e:term with | $p:term => true | _ => false)
|
||||
|
||||
namespace Parser.Tactic
|
||||
syntax (name := intro) "intro " notFollowedBy("|") (colGt term:max)* : tactic
|
||||
syntax (name := intros) "intros " (colGt (ident <|> "_"))* : tactic
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue