feat: add quot_precheck Lean.Parser.Term.explicit
This commit is contained in:
parent
9d013ba3f5
commit
07bd2a8488
1 changed files with 5 additions and 0 deletions
|
|
@ -123,6 +123,11 @@ private def isSectionVariable (e : Expr) : TermElabM Bool := do
|
|||
| `(($e :)) => precheck e
|
||||
| _ => throwUnsupportedSyntax
|
||||
|
||||
@[builtin_quot_precheck Lean.Parser.Term.explicit] def precheckExplicit : Precheck
|
||||
| `(@ $id) => do
|
||||
precheck id
|
||||
| _ => throwUnsupportedSyntax
|
||||
|
||||
@[builtin_quot_precheck choice] def precheckChoice : Precheck := fun stx => do
|
||||
let checks ← stx.getArgs.mapM (_root_.observing ∘ precheck)
|
||||
let fails := checks.zip stx.getArgs |>.filterMap fun
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue