refactor: move notation comands to Syntax.lean
This commit is contained in:
parent
d0f7467c95
commit
6ff732f698
2 changed files with 5 additions and 5 deletions
|
|
@ -483,11 +483,6 @@ fun n => do
|
|||
else
|
||||
elabOpenRenaming body
|
||||
|
||||
/- We just ignore Lean3 notation declaration commands. -/
|
||||
@[builtinCommandElab «mixfix»] def elabMixfix : CommandElab := fun _ => pure ()
|
||||
@[builtinCommandElab «reserve»] def elabReserve : CommandElab := fun _ => pure ()
|
||||
@[builtinCommandElab «notation»] def elabNotation : CommandElab := fun _ => pure ()
|
||||
|
||||
@[builtinCommandElab «variable»] def elabVariable : CommandElab :=
|
||||
fun n => do
|
||||
-- `variable` bracktedBinder
|
||||
|
|
|
|||
|
|
@ -173,6 +173,11 @@ adaptExpander $ fun stx => match_syntax stx with
|
|||
`(@[macro $(Lean.mkSimpleIdent k)] def myMacro : Macro := fun stx => match_syntax stx with $alts* | _ => throw ())
|
||||
| _ => throwUnsupportedSyntax
|
||||
|
||||
/- We just ignore Lean3 notation declaration commands. -/
|
||||
@[builtinCommandElab «mixfix»] def elabMixfix : CommandElab := fun _ => pure ()
|
||||
@[builtinCommandElab «reserve»] def elabReserve : CommandElab := fun _ => pure ()
|
||||
@[builtinCommandElab «notation»] def elabNotation : CommandElab := fun _ => pure ()
|
||||
|
||||
end Command
|
||||
end Elab
|
||||
end Lean
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue