非结合中缀运算符使用 Lean.Parser.Command.mixfix : commandinfix 定义:
command ::= ... |docComment? attributes?attrKind`attrKind` 匹配 `("scoped" <|> "local")?`,用于属性之前,例如 `@[local simp]`。infix:prec ((name := ident))? ((priority := prio))? str => term
左结合中缀运算符使用 Lean.Parser.Command.mixfix : commandinfixl 定义:
command ::= ... |docComment? attributes?attrKind`attrKind` 匹配 `("scoped" <|> "local")?`,用于属性之前,例如 `@[local simp]`。infixl:prec ((name := ident))? ((priority := prio))? str => term
右结合中缀运算符使用 Lean.Parser.Command.mixfix : commandinfixr 定义:
command ::= ... |docComment? attributes?attrKind`attrKind` 匹配 `("scoped" <|> "local")?`,用于属性之前,例如 `@[local simp]`。infixr:prec ((name := ident))? ((priority := prio))? str => term
前缀运算符使用 Lean.Parser.Command.mixfix : commandprefix 定义:
command ::= ... |docComment? attributes?attrKind`attrKind` 匹配 `("scoped" <|> "local")?`,用于属性之前,例如 `@[local simp]`。prefix:prec ((name := ident))? ((priority := prio))? str => term
后缀运算符使用 Lean.Parser.Command.mixfix : commandpostfix 定义:
command ::= ... |docComment? attributes?attrKind`attrKind` 匹配 `("scoped" <|> "local")?`,用于属性之前,例如 `@[local simp]`。postfix:prec ((name := ident))? ((priority := prio))? str => term