Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

infix は notation に展開されるマクロ #402

Closed
Seasawher opened this issue Jun 29, 2024 · 0 comments · Fixed by #437
Closed

infix は notation に展開されるマクロ #402

Seasawher opened this issue Jun 29, 2024 · 0 comments · Fixed by #437

Comments

@Seasawher
Copy link
Member

elab "#expand_command " t:command : command => do
  match ← Elab.liftMacroM <| Lean.Macro.expandMacro? t with
  | none => logInfo m!"Not a macro"
  | some t => 
    logInfo m!"{t}"

/-- info: notation:50 lhs✝:51 " LXOR " rhs✝:50 => (fun l r => (!l && r)) lhs✝ rhs✝ -/
#guard_msgs in #expand_command infixr:50 " LXOR " => fun l r => (!l && r)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant