Zulip Chat Archive

Stream: new members

Topic: Expected Term Error


Joseph O (May 28 2022 at 18:21):

With this macro, i get the error expected term

syntax ident ident "=" term ";" : command

macro_rules
  | `($ty:ident $name:ident = $v;) =>
    `(let $name:ident : $ty:ident := $v)

but when I make $v into $v:term, it gives a weirder error. Any ideas?

Joseph O (May 28 2022 at 18:22):

And this is Lean 4 fyi

Joseph O (May 28 2022 at 19:48):

I tried changing command into term, but that didn't help

Joseph O (May 31 2022 at 14:09):

Bumping


Last updated: Dec 20 2023 at 11:08 UTC